aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2021-11-21 00:44:36 +0000
committerLancelot SIX <lsix@lancelotsix.com>2022-01-07 22:43:33 +0000
commit1868c0cb3378ba3984c056b3850cc93eaa709e04 (patch)
tree1c4da4016ed50f9def6d3ecf3219c9bd1487da53 /gdb
parente88e167858ab3798df9b8c858d07fcccc6336bc7 (diff)
downloadgdb-1868c0cb3378ba3984c056b3850cc93eaa709e04.zip
gdb-1868c0cb3378ba3984c056b3850cc93eaa709e04.tar.gz
gdb-1868c0cb3378ba3984c056b3850cc93eaa709e04.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/exprs.exp10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/exprs.exp b/gdb/testsuite/gdb.base/exprs.exp
index 0d080e3..c67647a 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" ""