aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-05-31 09:21:20 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-05-31 09:23:32 +0100
commit42745ac5821471e8b953d24730c82c3cefa72d67 (patch)
treee5c708679598ada964476b1cb9ed2a149a539301 /gdb/testsuite
parentf77d3081de7a0058cd837cb404a8736670289e09 (diff)
downloadgdb-42745ac5821471e8b953d24730c82c3cefa72d67.zip
gdb-42745ac5821471e8b953d24730c82c3cefa72d67.tar.gz
gdb-42745ac5821471e8b953d24730c82c3cefa72d67.tar.bz2
gdb/testsuite: resolve duplicate test name in gdb.trace/signal.exp
Spotted a duplicate test name in gdb.trace/signal.exp, resolved in this commit by making use of 'with_test_prefix'.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.trace/signal.exp10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.trace/signal.exp b/gdb/testsuite/gdb.trace/signal.exp
index 782abeb..da9f060 100644
--- a/gdb/testsuite/gdb.trace/signal.exp
+++ b/gdb/testsuite/gdb.trace/signal.exp
@@ -125,7 +125,9 @@ delete_breakpoints
gdb_breakpoint "start" qualified
gdb_continue_to_breakpoint "continue to start"
-gdb_assert { 0 == [get_integer_valueof "counter" "1"] } "counter is zero"
+with_test_prefix "counter is zero" {
+ gdb_assert { 0 == [get_integer_valueof "counter" "1"] } "assert check"
+}
delete_breakpoints
@@ -147,8 +149,10 @@ gdb_test_no_output "tstop"
set iterations [get_integer_valueof "iterations" "0"]
-gdb_assert { $iterations == [get_integer_valueof "counter" "0"] } \
- "iterations equals to counter"
+with_test_prefix "iterations equals to counter" {
+ gdb_assert { $iterations == [get_integer_valueof "counter" "0"] } \
+ "assert check"
+}
# Record the hit times of each tracepoint in this array.
array set tracepoint_hits { }