The #dest field used in the cris testsuite is a bit of hack to set the
argv[0] for the tests to read out later on. Now that the sim has an
option to set argv[0] explicitly, we don't need this custom field, so
let's drop it to harmonize the testsuites a little.
set opts(timeout) ""
set opts(mach) ""
set opts(xerror) "no"
- set opts(dest) "$testname.x"
set opts(simenv) ""
set opts(kfail) ""
set opts(xfail) ""
verbose -log "Compiling $src with $opts(cc)"
- set dest "$opts(dest)"
- if { [target_compile $src $dest "executable" "$opts(cc)" ] != "" } {
+ if { [target_compile $src "$testname.x" "executable" "$opts(cc)" ] != "" } {
unresolved $testname
continue
}
eval setup_kfail $opts(kfail)
}
- set result [sim_run $dest "$opts(sim,$mach)" "$opts(progoptions)" \
+ set result [sim_run "$testname.x" "$opts(sim,$mach)" "$opts(progoptions)" \
"" "$opts(simenv)"]
set return_code [lindex $result 0]
set output [lindex $result 1]
/* As readlink5.c (sic), but specifying silent ENOSYS.
#notarget: cris*-*-elf
-#dest: ./readlink11.c.x
-#sim: --cris-unknown-syscall=enosys-quiet
+#sim: --cris-unknown-syscall=enosys-quiet --argv0 ./readlink11.c.x
#output: ENOSYS\n
#output: xyzzy\n
*/
/* Check that unsupported readlink calls don't cause the simulator to abort.
#notarget: cris*-*-elf
-#dest: ./readlink5.c.x
+#sim: --argv0 ./readlink5.c.x
#xerror:
#output: Unimplemented readlink syscall (*)\n
#output: program stopped with signal 4 (*).\n
/* Check that rare readlink calls don't cause the simulator to abort.
#notarget: cris*-*-elf
-#dest: @exedir@/readlink6.c.x
+#sim: --argv0 @exedir@/readlink6.c.x
*/
#include "readlink2.c"