diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-26 18:51:07 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-26 18:51:07 +0000 |
commit | 0557b60a665e2ebd89306ddb98960614f003796e (patch) | |
tree | e9424f9335b74670488bd43cc1db6d9816d6b9a7 /libstdc++-v3 | |
parent | 7c1a3226fb6830fb586f626481c57d4cf9e60deb (diff) | |
download | gcc-0557b60a665e2ebd89306ddb98960614f003796e.tar.gz |
gcc/
PR testsuite/28870
* doc/sourcebuild.texi (Test Directives): Add dg-timeout and
dg-timeout-factor.
gcc/testsuite/
PR testsuite/28870
* lib/timeout.exp: New.
* lib/timeout-dg.exp: New.
* lib/gcc-dg.exp: Include new timeout library files.
(dg-test): Unset timeout variables.
* lib/gcc.exp (gcc_target_compile): Set timeout value from new proc.
* lib/g++.exp (g++_target_compile): Ditto.
* lib/gfortran.exp (gfortran_target_compile): Ditto.
* lib/objc.exp (objc_target_compile): Ditto.
* lib/obj-c++.exp (obj-c++_target_compile): Ditto.
* lib/obj-c++.exp (obj-c++_target_compile): Ditto.
* lib/gnat.exp (gnat_target_compile): Ditto.
libstdc++-v3/
PR testsuite/28870
* testsuite/lib/libstdc++.exp: Include new timeout library files.
(libstdc++_init): Define tool_timeout.
(dg-test): Override DejaGnu proc.
(v3_target_compile): Set timeout value from new proc.
(v3_target_compile_as_c): Ditto.
libmudflap/
PR testsuite/28870
* testsuite/lib/mfdg.exp (dg-test): Use new timeout support.
(dg-timeout): Remove.
(standard-wait): Remove.
* testsuite/lib/libmudflap.exp: Include new timeout library files.
(libmudflap_target_compile): Set timeout value from new proc.
libgomp/
PR testsuite/28870
* testsuite/lib/libgomp.exp: Include new timeout library files.
(libgomp_target_compile): Set timeout value from new proc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142225 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 9 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 28 |
2 files changed, 35 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2cd9609f461..a9638027c6d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2008-11-26 Janis Johnson <janis187@us.ibm.com> + + PR testsuite/28870 + * testsuite/lib/libstdc++.exp: Include new timeout library files. + (libstdc++_init): Define tool_timeout. + (dg-test): Override DejaGnu proc. + (v3_target_compile): Set timeout value from new proc. + (v3_target_compile_as_c): Ditto. + 2008-11-24 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/38244 (cont, debug bits) diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 8a4e8c430c4..3b2e18b7b2c 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -53,6 +53,8 @@ load_gcc_lib target-supports-dg.exp load_lib prune.exp load_lib dg-options.exp load_gcc_lib target-libpath.exp +load_gcc_lib timeout.exp +load_gcc_lib timeout-dg.exp load_gcc_lib wrapper.exp # Useful for debugging. Pass the name of a variable and the verbosity @@ -89,6 +91,7 @@ proc libstdc++_init { testfile } { global ld_library_path global target_triplet global flags_file + global tool_timeout # We set LC_ALL and LANG to C so that we get the same error # messages as expected. @@ -184,6 +187,9 @@ proc libstdc++_init { testfile } { set compiler [transform "g++"] } + # Set the default timeout for v3 tests. + set tool_timeout 600 + # Default settings. set cxx [transform "g++"] set cxxflags "-g -O2 -D_GLIBCXX_ASSERT -fmessage-length=0" @@ -346,6 +352,24 @@ proc libstdc++-dg-test { prog do_what extra_tool_flags } { return [list $comp_output $output_file] } +# Override the DejaGnu dg-test in order to clear flags after a test, as +# is done for compiler tests in gcc-dg.exp. + +if { [info procs saved-dg-test] == [list] } { + rename dg-test saved-dg-test + + proc dg-test { args } { + global errorInfo + + if { [ catch { eval saved-dg-test $args } errmsg ] } { + set saved_info $errorInfo + unset_timeout_vars + error $errmsg $saved_info + } + unset_timeout_vars + } +} + # True if the library supports wchar_t. set v3-wchar_t 0 @@ -389,7 +413,7 @@ proc v3_target_compile { source dest type options } { } lappend options "compiler=$cxx_final" - lappend options "timeout=600" + lappend options "timeout=[timeout_value]" return [target_compile $source $dest $type $options] } @@ -455,7 +479,7 @@ proc v3_target_compile_as_c { source dest type options } { set cc_final [concat $cc_final "$libdir"] lappend options "compiler=$cc_final" - lappend options "timeout=600" + lappend options "timeout=[timeout_value]" return [target_compile $source $dest $type $options] } |