aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-10-27 17:14:33 +0200
committerTom de Vries <tdevries@suse.de>2022-10-27 17:14:33 +0200
commit48ca5676924d2609f1b9ea1990719c9eb41e88a2 (patch)
tree4bade6852b8d48ca63c465f11473d8b9dd432f11 /gdb/testsuite/gdb.base
parent1dc83674da675a20ae361a037305777d23764574 (diff)
downloadgdb-48ca5676924d2609f1b9ea1990719c9eb41e88a2.zip
gdb-48ca5676924d2609f1b9ea1990719c9eb41e88a2.tar.gz
gdb-48ca5676924d2609f1b9ea1990719c9eb41e88a2.tar.bz2
[gdb/testsuite] Remove address from test names
I noticed an address in a test name: ... PASS: gdb.base/eh_return.exp: gdb_breakpoint: \ set breakpoint at *0x000000000040071b ... Stabilize the test name by using "set breakpoint on address" instead. Likewise in two other test-cases. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/eh_return.exp2
-rw-r--r--gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/eh_return.exp b/gdb/testsuite/gdb.base/eh_return.exp
index 6e4b9bd..a6dda78 100644
--- a/gdb/testsuite/gdb.base/eh_return.exp
+++ b/gdb/testsuite/gdb.base/eh_return.exp
@@ -73,7 +73,7 @@ if { $address == -1 } {
clean_restart ${binfile}
-gdb_breakpoint "*$address" message
+gdb_assert [gdb_breakpoint "*$address" no-message] "set breakpoint on address"
# The assert did not reproduce when running to main, and continuing to the
# breakpoint, so instead, run to the breakpoint.
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
index 1753758..2e479d6 100644
--- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
+++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
@@ -45,7 +45,7 @@ if { $next_insn_addr == "" } {
return -1
}
-gdb_test "b *$next_insn_addr" "Breakpoint .*"
+gdb_test "b *$next_insn_addr" "Breakpoint .*" "set breakpoint on address"
# So that GDB doesn't try to remove the regular breakpoint when the
# step finishes.