aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/gcc-dg.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>2002-01-22 22:08:49 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2002-01-22 14:08:49 -0800
commitd04fd40f86bb40d9267ef40419f021d6bcdeda23 (patch)
tree96e307a717146f2912851ca06bdfb527875ac83f /gcc/testsuite/lib/gcc-dg.exp
parentbda145054363dfa5eef640d526542bc6130a56d0 (diff)
downloadgcc-d04fd40f86bb40d9267ef40419f021d6bcdeda23.zip
gcc-d04fd40f86bb40d9267ef40419f021d6bcdeda23.tar.gz
gcc-d04fd40f86bb40d9267ef40419f021d6bcdeda23.tar.bz2
ecos.exp: Append .exe instead of a.out as the link output.
2002-01-22 H.J. Lu <hjl@gnu.org> * g++.dg/special/ecos.exp: Append .exe instead of a.out as the link output. * gcc.dg/special/ecos.exp: Likewise. * lib/g++-dg.exp: Likewise. * lib/g77-dg.exp: Likewise. * lib/gcc-dg.exp : Likewise. * lib/mike-g++.exp: Likewise. * lib/mike-g77.exp: Likewise. * lib/mike-gcc.exp: Likewise. * lib/objc-dg.exp: Likewise. From-SVN: r49100
Diffstat (limited to 'gcc/testsuite/lib/gcc-dg.exp')
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index 4faa46d..403fefc 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -71,7 +71,7 @@ proc gcc-dg-test { prog do_what extra_tool_flags } {
}
"link" {
set compile_type "executable"
- set output_file "a.out"
+ set output_file "[file rootname [file tail $prog]].exe"
# The following line is needed for targets like the i960 where
# the default output file is b.out. Sigh.
}
@@ -80,7 +80,7 @@ proc gcc-dg-test { prog do_what extra_tool_flags } {
# FIXME: "./" is to cope with "." not being in $PATH.
# Should this be handled elsewhere?
# YES.
- set output_file "./a.out"
+ set output_file "./[file rootname [file tail $prog]].exe"
# This is the only place where we care if an executable was
# created or not. If it was, dg.exp will try to run it.
remote_file build delete $output_file;