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
This commit is contained in:
Andreas Schwab 2012-12-09 14:31:27 +00:00 committed by Andreas Schwab
parent da52ef4376
commit 9ddad47136
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-09 Andreas Schwab <schwab@linux-m68k.org>
* testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags
after running the test.
2012-12-04 Andreas Schwab <schwab@linux-m68k.org>
* include/Makefile.am (${host_builddir}/c++config.h): Replace

View File

@ -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
}
}
}