]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.ada/mi_catch_ex.exp
[gdb/testsuite] Fix duplicate test-names in gdb.ada
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.ada / mi_catch_ex.exp
index 60a5f6f19ee7107f289ae781a41eb8e18b7e3518..4b3e4f6f0b1bdf08cd67c1c9780dd98b315cd2c5 100644 (file)
@@ -69,9 +69,11 @@ mi_gdb_load ${binfile}
 # 1. Try catching all exceptions.  #
 ####################################
 
-if ![mi_run_to_main] then {
-   fail "cannot run to main, testcase aborted"
-   return 0
+with_test_prefix "scenario 1" {
+    if ![mi_run_to_main] then {
+       fail "cannot run to main, testcase aborted"
+       return 0
+    }
 }
 
 mi_gdb_test "-catch-exception" \
@@ -125,9 +127,11 @@ continue_to_exception \
 #  - continue, we should see the unhandled Constrait_Error exception
 #  - continue, the program exits.
 
-if ![mi_run_to_main] then {
-   fail "cannot run to main, testcase aborted"
-   return 0
+with_test_prefix "scenario 2" {
+    if ![mi_run_to_main] then {
+       fail "cannot run to main, testcase aborted"
+       return 0
+    }
 }
 
 mi_gdb_test "-catch-exception -e Program_Error" \