public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp
@ 2021-09-24 10:39 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2021-09-24 10:39 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d294324cc25bdff55b1f3c3918394ceeb63e7354
commit d294324cc25bdff55b1f3c3918394ceeb63e7354
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Sep 24 12:39:14 2021 +0200
[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.
Diff:
---
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:39 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:39 [binutils-gdb] [gdb/testsuite] Fix DUPLICATE in gdb.base/load-command.exp Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).