From: Andrew Burgess Date: Sun, 3 Apr 2022 15:36:48 +0000 (+0100) Subject: gdb/testsuite: resolve a duplicate test name in a gdb.mi test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f793f7beda340d847de19d9343d18400a1e21a3;p=binutils-gdb.git gdb/testsuite: resolve a duplicate test name in a gdb.mi test 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. --- diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp index a909bb9d300..d8d7a57a766 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp +++ b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp @@ -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"