summaryrefslogtreecommitdiffstats
path: root/newlib/testsuite/lib/checkoutput.exp
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/testsuite/lib/checkoutput.exp')
-rw-r--r--newlib/testsuite/lib/checkoutput.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/testsuite/lib/checkoutput.exp b/newlib/testsuite/lib/checkoutput.exp
index 8cb46925f..4bf7438af 100644
--- a/newlib/testsuite/lib/checkoutput.exp
+++ b/newlib/testsuite/lib/checkoutput.exp
@@ -9,10 +9,10 @@
# It assumes one line of output per test.
proc newlib_check_output { srcfile expectlist } {
- global objdir subdir srcdir
+ global subdir srcdir tmpdir
set srcfullname "$srcdir/$subdir/$srcfile"
- set test_driver "$objdir/testsuite/[file tail [file rootname $srcfullname].x]"
+ set test_driver "$tmpdir/[file tail [file rootname $srcfullname].x]"
set comp_output [newlib_target_compile "$srcfullname" "$test_driver" "executable" ""]