aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/pr-6632.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.chill/pr-6632.exp')
-rw-r--r--gdb/testsuite/gdb.chill/pr-6632.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.chill/pr-6632.exp b/gdb/testsuite/gdb.chill/pr-6632.exp
index 5b2c7f6..51650f5 100644
--- a/gdb/testsuite/gdb.chill/pr-6632.exp
+++ b/gdb/testsuite/gdb.chill/pr-6632.exp
@@ -28,7 +28,8 @@ if [skip_chill_tests] then { continue }
set testfile2 "pr-6632-grt"
set srcfile2 ${srcdir}/$subdir/${testfile2}.ch
-if { [compile "${srcfile2} -g -c"] != "" } {
+set objfile2 ${objdir}/$subdir/${testfile2}.o
+if { [compile "${srcfile2} -g -c -o ${objfile2}"] != "" } {
perror "Couldn't compile ${srcfile2}"
return -1
}
@@ -36,7 +37,7 @@ if { [compile "${srcfile2} -g -c"] != "" } {
set testfile "pr-6632"
set srcfile ${srcdir}/$subdir/${testfile}.ch
set binfile ${objdir}/${subdir}/${testfile}.exe
-if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
+if { [compile "${srcfile} ${objfile2} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
perror "Couldn't compile ${srcfile}"
return -1
}