* [committed][gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp
@ 2021-09-24 10:40 Tom de Vries via Gdb-patches
0 siblings, 0 replies; only message in thread
From: Tom de Vries via Gdb-patches @ 2021-09-24 10:40 UTC (permalink / raw)
To: gdb-patches
Hi,
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.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp
---
gdb/testsuite/gdb.base/load-command.exp | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.base/load-command.exp b/gdb/testsuite/gdb.base/load-command.exp
index 8847aff3b74..944dc39c155 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"
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-24 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 10:40 [committed][gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp Tom de Vries via Gdb-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox