gdb_exit
gdb_start
- gdb_reinitialize_dir $srcdir/$subdir
- gdb_load $objdir/$subdir/$binfile
+ gdb_load $binfile
send "set language chill\n" ; expect -re "$prompt $"
send "set var \$i:=xx\n" ; expect -re "$prompt $"
# haven't tried to compile one, or the compilation failed for some reason.
# In either case, just notify the user and skip the tests in this file.
-set binfile "pr-8405.exe"
-set srcfile $binfile.ch
+set testfile "pr-8405"
+set srcfile ${srcdir}/$subdir/${testfile}.ch
+set binfile ${objdir}/${subdir}/${testfile}.exe
+if { [compile "${srcfile} -g -w -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
+ perror "Couldn't compile ${srcfile}"
+ return -1
+}
if [skip_chill_tests] then { continue }
-if ![file exists $objdir/$subdir/$binfile] then {
+if ![file exists $binfile] then {
warning "$binfile does not exist; tests suppressed." 0
} else {
do_tests