diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-24 12:39:14 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-24 12:39:14 +0200 |
commit | d294324cc25bdff55b1f3c3918394ceeb63e7354 (patch) | |
tree | fc434f0887f10060dd5df2354c926cf3b04a6fa8 | |
parent | dbb17692ecd743aa0ee81d138442c63121a17cd4 (diff) | |
download | binutils-d294324cc25bdff55b1f3c3918394ceeb63e7354.zip binutils-d294324cc25bdff55b1f3c3918394ceeb63e7354.tar.gz binutils-d294324cc25bdff55b1f3c3918394ceeb63e7354.tar.bz2 |
[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.
-rw-r--r-- | gdb/testsuite/gdb.base/load-command.exp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/load-command.exp b/gdb/testsuite/gdb.base/load-command.exp index 8847aff..944dc39 100644 --- a/gdb/testsuite/gdb.base/load-command.exp +++ b/gdb/testsuite/gdb.base/load-command.exp @@ -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" - -# Re-loading the binary should have reset the variable value. -gdb_test "print/x the_variable" " = 0x1234" "check initial value of the_variable" +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" +} |