gdb/testsuite: Make test names unique in gdb.linespec tests
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / ls-errs.exp
index f031c461cb9707bfec608be9c8457dbd1e18a52e..0743d89bfafbb5688b303bac5013293d61d90f32 100644 (file)
@@ -92,7 +92,8 @@ proc do_test {lang} {
 
        gdb_test "break $linespec" [string_to_regexp \
                                    [eval format \$error_messages($msg_id) \
-                                    $args]]
+                                    $args]] \
+           "'break $linespec'"
     }
 
     # Some commonly used whitespace tests around ':'.
@@ -234,7 +235,7 @@ proc do_test {lang} {
        test_break "main:here${x}" unexpected "end of input"
     }
 
-    foreach x {"3" "+100" "-100" "foo"} {
+    foreach_with_prefix x {"3" "+100" "-100" "foo"} {
        test_break "main 3" invalid_function "main 3"
        test_break "-function \"main $x\"" invalid_function "main $x"
        if {$x == "foo"} {
This page took 0.0246 seconds and 4 git commands to generate.