From 9f793f7beda340d847de19d9343d18400a1e21a3 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Sun, 3 Apr 2022 16:36:48 +0100 Subject: [PATCH] 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. --- gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2