diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2021-11-19 18:58:04 +0000 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2022-01-07 22:43:32 +0000 |
commit | 3c1f0c735d69d8e06003f5344d4a19b4320f10d8 (patch) | |
tree | 26df7408c0b16e8a9f88d9f71143558ae9385bd2 | |
parent | 9fba072133e0463467e7927c2bebc994502bb7dc (diff) | |
download | binutils-3c1f0c735d69d8e06003f5344d4a19b4320f10d8.zip binutils-3c1f0c735d69d8e06003f5344d4a19b4320f10d8.tar.gz binutils-3c1f0c735d69d8e06003f5344d4a19b4320f10d8.tar.bz2 |
gdb/testsuite: Remove duplicates from gdb.base/stack-checking.exp
When running the testsuite I have:
Running .../gdb/testsuite/gdb.base/stack-checking.exp ...
DUPLICATE: gdb.base/stack-checking.exp: bt
DUPLICATE: gdb.base/stack-checking.exp: bt
Fix by using with_test_prefix.
Tested on x86_64-linux.
-rw-r--r-- | gdb/testsuite/gdb.base/stack-checking.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/stack-checking.exp b/gdb/testsuite/gdb.base/stack-checking.exp index 3d2cfd9..9f85302 100644 --- a/gdb/testsuite/gdb.base/stack-checking.exp +++ b/gdb/testsuite/gdb.base/stack-checking.exp @@ -31,8 +31,10 @@ if ![runto_main] then { # Test that the debugger is able to unwind to "main" at the next breakpoint # hit. The frame number of "main" should be passed into MAIN_FRAME_NUMBER." proc backtrace_test {name main_frame_number} { - gdb_continue_to_breakpoint "breakpoint for $name" - gdb_test "bt" "#${main_frame_number}.*in main ().*" + with_test_prefix $name { + gdb_continue_to_breakpoint "test location" + gdb_test "bt" "#${main_frame_number}.*in main ().*" + } } gdb_breakpoint [gdb_get_line_number "set breakpoint here"] |