diff options
author | Pedro Alves <palves@redhat.com> | 2017-03-08 14:05:41 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-03-08 14:17:23 +0000 |
commit | 2e86a2830cfef688a27e17353b84f59f8147ab23 (patch) | |
tree | 4ef37307bd770da0834512957b80c58e0807ab3e /gdb/testsuite | |
parent | 25dcbff6ef0088e080d92b3cbc346ae0b5071d9d (diff) | |
download | gdb-2e86a2830cfef688a27e17353b84f59f8147ab23.zip gdb-2e86a2830cfef688a27e17353b84f59f8147ab23.tar.gz gdb-2e86a2830cfef688a27e17353b84f59f8147ab23.tar.bz2 |
gdb.arch/amd64-entry-value-param*.exp: Make sure test messages are unique
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp | 24 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/amd64-entry-value-param.exp | 24 |
3 files changed, 35 insertions, 18 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 26135e5..4575e27 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 PKRU as not supported as a PASS. diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp index 0357ff4..bbaffd3 100644 --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp @@ -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" +} diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp index c0072ac..2ec9c31 100644 --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp @@ -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" +} |