* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49100
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+
2002-01-22 Janis Johnson <janis187@us.ibm.com>
PR target/5379
###########
dg-init
-set lines [g++_target_compile "$srcdir/$subdir/conpr-1.C" "$objdir/a.out" executable ""]
+set lines [g++_target_compile "$srcdir/$subdir/conpr-1.C" "$objdir/conpr-1.exe" executable ""]
if [string match "*init_priority*" $lines] then {
xfail "conpr-1.C"
- file delete $objdir/a.out
+ file delete $objdir/conpr-1.exe
} elseif ![string match "" $lines] then {
fail "conpr-1.C"
} else {
dg-runtest "$srcdir/$subdir/conpr-1.C" "" ""
- file delete $objdir/a.out
+ file delete $objdir/conpr-1.exe
}
dg-finish
###########
dg-init
-set lines [g++_target_compile "$srcdir/$subdir/initp1.C" "$objdir/a.out" executable ""]
+set lines [g++_target_compile "$srcdir/$subdir/initp1.C" "$objdir/initp1.exe" executable ""]
if [string match "*init_priority*" $lines] then {
xfail "initp1.C"
- file delete $objdir/a.out
+ file delete $objdir/initp1.exe
} elseif ![string match "" $lines] then {
fail "initp1.C"
} else {
dg-runtest "$srcdir/$subdir/initp1.C" "" ""
- file delete $objdir/a.out
+ file delete $objdir/initp1.exe
}
dg-finish
set lines [gcc_target_compile "$srcdir/$subdir/wkali-2b.c" "wkali-2b.o" object ""]
if [string match "*only weak aliases*" $lines] then {
xfail "wkali-2b.o"
- file delete $srcdir/$subdir/a.out
+ file delete $srcdir/$subdir/wkali-2.exe
} elseif ![string match "" $lines] then {
fail "wkali-2b.o"
} else {
}
"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.
}
# 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;
}
"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.
}
# 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;
}
"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.
}
# 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;
link
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
}
run
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
set run yes;
}
default
link
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
}
run
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
set run yes;
}
default
link
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
}
run
{
set compile_type "executable";
- set output_file "$tmpdir/a.out";
+ append output_file ".exe";
set run yes;
}
default
}
"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.
}
# 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;