gdb/testsuite: Remove duplicates from gdb.base/pie-fork.exp
authorLancelot SIX <lsix@lancelotsix.com>
Fri, 19 Nov 2021 23:08:23 +0000 (23:08 +0000)
committerLancelot SIX <lsix@lancelotsix.com>
Fri, 7 Jan 2022 22:43:32 +0000 (22:43 +0000)
When running the testsuite, I have:

    Running .../gdb/testsuite/gdb.base/pie-fork.exp ...
    DUPLICATE: gdb.base/pie-fork.exp: test_no_detach_on_fork: continue

Fix by giving explicit names to the 'continue' commands that cause the
duplicate message.

Tested on x86_64-linux.

gdb/testsuite/gdb.base/pie-fork.exp

index a60e42009a813814defdf1d0777acc27bc75a443..efc357d39a2dd89e1d4114680291133a17c78aba 100644 (file)
@@ -54,9 +54,11 @@ proc_with_prefix test_detach_on_fork_follow_child {} {
 proc_with_prefix test_no_detach_on_fork {} {
     setup_test "off"
 
-    gdb_test "continue" "\r\nThread 1.1 .* hit Breakpoint 2, break_here.*"
+    gdb_test "continue" "\r\nThread 1.1 .* hit Breakpoint 2, break_here.*" \
+            "continue from thread 1.1"
     gdb_test "thread 2.1"
-    gdb_test "continue" "\r\nThread 2.1 .* hit Breakpoint 2, break_here.*"
+    gdb_test "continue" "\r\nThread 2.1 .* hit Breakpoint 2, break_here.*" \
+            "continue from thread 2.1"
 }
 
 test_detach_on_fork_follow_parent