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" ""