diff options
author | Angela Marie Thomas <angela@cygnus.com> | 2001-05-18 05:37:43 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-05-18 05:37:43 +0000 |
commit | 256e7e85b0e29ada64e573094975cfdc3b7a71f0 (patch) | |
tree | 895b0d7bb4f98b4e3b9e1eeb859f2c6e67605a2d /libstdc++-v3 | |
parent | 9c233cb328c39e0b54f7c2c9285512bcff7494d3 (diff) | |
download | gcc-256e7e85b0e29ada64e573094975cfdc3b7a71f0.zip gcc-256e7e85b0e29ada64e573094975cfdc3b7a71f0.tar.gz gcc-256e7e85b0e29ada64e573094975cfdc3b7a71f0.tar.bz2 |
libstdc++-v3-dg.exp (libstdc++-v3-dg-test): Set output_file based on the name of the testcase.
2001-05-18 Angela Marie Thomas <angela@cygnus.com>
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-dg-test): Set
output_file based on the name of the testcase.
2001-05-18 Angela Marie Thomas <angela@cygnus.com>
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Build
gluefile and use it if needs_status_wrapper is set.
From-SVN: r42240
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 10 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp | 18 |
2 files changed, 26 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a80bdc7..22e0793 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,13 @@ +2001-05-18 Angela Marie Thomas <angela@cygnus.com> + + * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-dg-test): Set + output_file based on the name of the testcase. + +2001-05-18 Angela Marie Thomas <angela@cygnus.com> + + * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Build + gluefile and use it if needs_status_wrapper is set. + 2001-05-18 Alexandre Oliva <aoliva@redhat.com> * configure.target (ATOMICITYH): Use cpu/generic code on earlier diff --git a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp index 21729c9..978ab01 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp @@ -26,6 +26,8 @@ proc libstdc++-v3-init { args } { global cxx global includes global cxxflags + global objdir + global gluefile wrap_flags set blddir [lookfor_file $outdir libstdc++-v3] set cxx [exec sh ${blddir}/testsuite_flags --build-cxx] @@ -43,6 +45,18 @@ proc libstdc++-v3-init { args } { foreach txt [glob -nocomplain "$srcdir/*/*.txt"] { file copy -force $txt $outdir } + + if { [target_info needs_status_wrapper]!="" && ![info exists gluefile] } { + set gluefile ${objdir}/testglue.o; + set result [build_wrapper $gluefile]; + if { $result != "" } { + set gluefile [lindex $result 0]; + set wrap_flags [lindex $result 1]; + } else { + unset gluefile + } + } + } proc libstdc++-v3-dg-test { prog do_what extra_tool_flags } { @@ -63,14 +77,14 @@ proc libstdc++-v3-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]]" } "run" { set compile_type "executable" # 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]]" # 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; |