mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
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.
This commit is contained in:
@ -31,9 +31,11 @@ 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"
|
||||
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"]
|
||||
backtrace_test "small frame" "1"
|
||||
|
Reference in New Issue
Block a user