* testsuite/lib/libstdc++.exp (dg-test): Unset testname_with_flags
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2012 14:31:27 +0000 (14:31 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2012 14:31:27 +0000 (14:31 +0000)
after running the test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194330 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 0be692b..c478e94 100644 (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
index b3be88f..10b9738 100644 (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
+       }
     }
 }