gdb.arch/amd64-entry-value-param*.exp: Make sure test messages are unique
authorPedro Alves <palves@redhat.com>
Wed, 8 Mar 2017 14:05:41 +0000 (14:05 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 8 Mar 2017 14:17:23 +0000 (14:17 +0000)
gdb/testsuite/ChangeLog:
2017-03-08  Pedro Alves  <palves@redhat.com>

* gdb.arch/amd64-entry-value-param-dwarf5.exp: Use with_test_prefix.
* gdb.arch/amd64-entry-value-param.exp: Use with_test_prefix.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
gdb/testsuite/gdb.arch/amd64-entry-value-param.exp

index 26135e52ce9e0a1e8ae72c728f8ed34e57c844e4..4575e2784fab9a5d398e8b6a6212822ebfc187ba 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-08  Pedro Alves  <palves@redhat.com>
+
+       * gdb.arch/amd64-entry-value-param-dwarf5.exp: Use with_test_prefix.
+       * gdb.arch/amd64-entry-value-param.exp: Use with_test_prefix.
+
 2017-03-08  Pedro Alves  <palves@redhat.com>
 
        * gdb.arch/i386-pkru.exp (probe PKRU support): Handle detecting
index 0357ff406d721b9db0845305b35766a50eeaaaab..bbaffd376dc670eaa2e93226c5e16f1f8c9893e2 100644 (file)
@@ -36,14 +36,20 @@ if ![runto_main] {
 set srcfile $srcfile2
 gdb_breakpoint [gdb_get_line_number "break-here"]
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 2"
-gdb_test "p b" " = 4"
+with_test_prefix "call 1" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 2"
+    gdb_test "p b" " = 4"
+}
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 4"
-gdb_test "p b" " = 8"
+with_test_prefix "call 2" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 4"
+    gdb_test "p b" " = 8"
+}
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 10"
-gdb_test "p b" " = 20"
+with_test_prefix "call 3" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 10"
+    gdb_test "p b" " = 20"
+}
index c0072ac00c88c4eb200d53a5865e6c3df2b064bd..2ec9c31e8efc1e75c27a34ccab7bf20baeabdb1a 100644 (file)
@@ -36,14 +36,20 @@ if ![runto_main] {
 set srcfile $srcfile2
 gdb_breakpoint [gdb_get_line_number "break-here"]
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 2"
-gdb_test "p b" " = 4"
+with_test_prefix "call 1" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 2"
+    gdb_test "p b" " = 4"
+}
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 4"
-gdb_test "p b" " = 8"
+with_test_prefix "call 2" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 4"
+    gdb_test "p b" " = 8"
+}
 
-gdb_continue_to_breakpoint "break-here" ".* break-here .*"
-gdb_test "p y" " = 10"
-gdb_test "p b" " = 20"
+with_test_prefix "call 3" {
+    gdb_continue_to_breakpoint "break-here" ".* break-here .*"
+    gdb_test "p y" " = 10"
+    gdb_test "p b" " = 20"
+}