]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: resolve a duplicate test name in a gdb.mi test
authorAndrew Burgess <aburgess@redhat.com>
Sun, 3 Apr 2022 15:36:48 +0000 (16:36 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Sun, 3 Apr 2022 15:39:48 +0000 (16:39 +0100)
Solve two duplicate test names in the test script:

  gdb.mi/mi-catch-cpp-exceptions.exp

by moving the call to restart_for_test inside the with_test_prefix
block.  There should be no difference in what is tested after this
commit.

gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp

index a909bb9d3009cbfc8223cf728acb800b26a01639..d8d7a57a76646ed30528c5f65a711f18e017d68e 100644 (file)
@@ -183,8 +183,8 @@ with_test_prefix "all with -t" {
 
 if { $libstdcxx_probe_tests_supported  == 1 } {
     # Check that the temporary switch works when used with a regexp.
-    restart_for_test
     with_test_prefix "all with -t and regexp" {
+       restart_for_test
        setup_catchpoint "throw" "-t -r my_ex"
        setup_catchpoint "rethrow" "-t -r _except"
        setup_catchpoint "catch" "-t -r my_exception"