public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: Remove duplicates from gdb.base/exprs.exp
@ 2022-01-07 22:46 Lancelot SIX
0 siblings, 0 replies; only message in thread
From: Lancelot SIX @ 2022-01-07 22:46 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1868c0cb3378ba3984c056b3850cc93eaa709e04
commit 1868c0cb3378ba3984c056b3850cc93eaa709e04
Author: Lancelot SIX <lsix@lancelotsix.com>
Date: Sun Nov 21 00:44:36 2021 +0000
gdb/testsuite: Remove duplicates from gdb.base/exprs.exp
When running the testsuite, I have:
Running .../gdb/testsuite/gdb.base/exprs.exp ...
DUPLICATE: gdb.base/exprs.exp: \$[0-9]* = red (setup)
Fix by using with_test_prefix where appropriate.
Tested on x86_64-linux.
Diff:
---
gdb/testsuite/gdb.base/exprs.exp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.base/exprs.exp b/gdb/testsuite/gdb.base/exprs.exp
index 0d080e31c76..c67647a67db 100644
--- a/gdb/testsuite/gdb.base/exprs.exp
+++ b/gdb/testsuite/gdb.base/exprs.exp
@@ -237,10 +237,12 @@ test_expr "print \"x\" \"y\" \"z\"" "\\$\[0-9\]* = \"xyz\""
# Enum formatting tests.
test_expr "print red" "\\$\[0-9\]* = red"
-gdb_test "set output-radix 8" ".*"
-test_expr "print red" "\\$\[0-9\]* = red"
-test_expr "print/d red" "\\$\[0-9\]* = 0"
-gdb_test "set output-radix 10" ".*"
+with_test_prefix "output-radix 8" {
+ gdb_test "set output-radix 8" ".*"
+ test_expr "print red" "\\$\[0-9\]* = red"
+ test_expr "print/d red" "\\$\[0-9\]* = 0"
+ gdb_test "set output-radix 10" ".*"
+}
# Pre-/post in-/decrement tests.
gdb_test "set variable v_int = 1" ""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-07 22:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 22:46 [binutils-gdb] gdb/testsuite: Remove duplicates from gdb.base/exprs.exp Lancelot SIX
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).