diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-12-09 14:31:27 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2012-12-09 14:31:27 +0000 |
commit | 9ddad47136de9aa110f48261f7a4f4a9ea088a4e (patch) | |
tree | 1dee78537fbaf69b6a62cb553ac27709cad170c1 /libstdc++-v3/testsuite/lib | |
parent | da52ef437636927aa2bb33d50417a1e1c6a8dee2 (diff) | |
download | gcc-9ddad47136de9aa110f48261f7a4f4a9ea088a4e.zip gcc-9ddad47136de9aa110f48261f7a4f4a9ea088a4e.tar.gz gcc-9ddad47136de9aa110f48261f7a4f4a9ea088a4e.tar.bz2 |
libstdc++.exp (dg-test): Unset testname_with_flags after running the test.
* testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags
after running the test.
From-SVN: r194330
Diffstat (limited to 'libstdc++-v3/testsuite/lib')
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index b3be88f..10b9738 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -389,15 +389,22 @@ if { [info procs saved-dg-test] == [list] } { proc dg-test { args } { global additional_prunes global errorInfo + global testname_with_flags if { [ catch { eval saved-dg-test $args } errmsg ] } { set saved_info $errorInfo set additional_prunes "" + if [info exists testname_with_flags] { + unset testname_with_flags + } unset_timeout_vars error $errmsg $saved_info } set additional_prunes "" unset_timeout_vars + if [info exists testname_with_flags] { + unset testname_with_flags + } } } |