aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-04-03 16:36:48 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-04-03 16:39:48 +0100
commit9f793f7beda340d847de19d9343d18400a1e21a3 (patch)
treec49473a94fe0fca19ab0c9f1312e4e5f595cbc10 /gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
parent88fa6d3d663b93b3b56c4257aa31a4d49851d286 (diff)
downloadgdb-9f793f7beda340d847de19d9343d18400a1e21a3.zip
gdb-9f793f7beda340d847de19d9343d18400a1e21a3.tar.gz
gdb-9f793f7beda340d847de19d9343d18400a1e21a3.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
index a909bb9..d8d7a57 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"