mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
[gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp
Fix this duplicate: ... DUPLICATE: gdb.base/load-command.exp: check initial value of the_variable ... by using with_test_prefix. Tested on x86_64-linux.
This commit is contained in:
@ -42,8 +42,12 @@ gdb_test "print/x the_variable" " = 0x1234" "check initial value of the_variable
|
||||
gdb_test_no_output "set the_variable = 0x5555" "manually change the_variable"
|
||||
gdb_test "print/x the_variable" " = 0x5555" "check manually changed value of the_variable"
|
||||
|
||||
# Re-load the binary using the load command.
|
||||
gdb_test "load ${binfile}" ".*Loading section .data.*Transfer rate:.*" "re-load binary"
|
||||
with_test_prefix "reload" {
|
||||
# Re-load the binary using the load command.
|
||||
gdb_test "load ${binfile}" ".*Loading section .data.*Transfer rate:.*" \
|
||||
"re-load binary"
|
||||
|
||||
# Re-loading the binary should have reset the variable value.
|
||||
gdb_test "print/x the_variable" " = 0x1234" "check initial value of the_variable"
|
||||
# Re-loading the binary should have reset the variable value.
|
||||
gdb_test "print/x the_variable" " = 0x1234" \
|
||||
"check initial value of the_variable"
|
||||
}
|
||||
|
Reference in New Issue
Block a user