aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-12-30 23:45:36 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2020-12-30 23:45:36 -0500
commit391750c3554861181bc58aabe75cd4eae91b7f48 (patch)
tree09e8a16de2c55d031a4feb599510a60fd9904af0 /gdb
parent382bc56bc702608c2f493f743c2e990435a7a74c (diff)
downloadgdb-391750c3554861181bc58aabe75cd4eae91b7f48.zip
gdb-391750c3554861181bc58aabe75cd4eae91b7f48.tar.gz
gdb-391750c3554861181bc58aabe75cd4eae91b7f48.tar.bz2
gdb/testsuite: de-duplicate test names in gdb.python/py-frame-args.exp
Use with_test_prefix to de-duplicate test names. gdb/testsuite/ChangeLog: * gdb.python/py-frame-args.exp: De-duplicate test names. Change-Id: I5cc8bee692a0d071cb78258aca80ea642e00e7a8
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-frame-args.exp48
2 files changed, 30 insertions, 22 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 2053553..841078a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdb.python/py-frame-args.exp: De-duplicate test names.
+
2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
PR gdb/27059
diff --git a/gdb/testsuite/gdb.python/py-frame-args.exp b/gdb/testsuite/gdb.python/py-frame-args.exp
index fd9c1f4..d820f0b 100644
--- a/gdb/testsuite/gdb.python/py-frame-args.exp
+++ b/gdb/testsuite/gdb.python/py-frame-args.exp
@@ -38,32 +38,36 @@ gdb_continue_to_breakpoint "break-here" ".* break-here .*"
gdb_test_no_output "set print raw-frame-arguments off"
-gdb_test_no_output "set print frame-arguments none"
-gdb_test "frame" ".*foo \\(x=\[.\]{3}, ss=\[.\]{3}\\).*" \
- "frame pretty,none"
-
-gdb_test_no_output "set print frame-arguments scalars"
-gdb_test "frame" ".*foo \\(x=42, ss=super struct = {\[.\]{3}}\\).*" \
- "frame pretty,scalars"
-
-gdb_test_no_output "set print frame-arguments all"
-gdb_test "frame" \
- ".*foo \\(x=42, ss=super struct = {a = m=<1>, b = m=<2>}\\).*" \
- "frame pretty,all"
+with_test_prefix "pretty frame args" {
+ gdb_test_no_output "set print frame-arguments none"
+ gdb_test "frame" ".*foo \\(x=\[.\]{3}, ss=\[.\]{3}\\).*" \
+ "none"
+
+ gdb_test_no_output "set print frame-arguments scalars"
+ gdb_test "frame" ".*foo \\(x=42, ss=super struct = {\[.\]{3}}\\).*" \
+ "scalars"
+
+ gdb_test_no_output "set print frame-arguments all"
+ gdb_test "frame" \
+ ".*foo \\(x=42, ss=super struct = {a = m=<1>, b = m=<2>}\\).*" \
+ "all"
+}
# Test all combinations with raw on.
gdb_test_no_output "set print raw-frame-arguments on"
-gdb_test_no_output "set print frame-arguments none"
-gdb_test "frame" ".*foo \\(x=\[.\]{3}, ss=\[.\]{3}\\).*" \
- "frame raw,none"
+with_test_prefix "raw frame args" {
+ gdb_test_no_output "set print frame-arguments none"
+ gdb_test "frame" ".*foo \\(x=\[.\]{3}, ss=\[.\]{3}\\).*" \
+ "none"
-gdb_test_no_output "set print frame-arguments scalars"
-gdb_test "frame" ".*foo \\(x=42, ss=\[.\]{3}\\).*" \
- "frame raw,scalars"
+ gdb_test_no_output "set print frame-arguments scalars"
+ gdb_test "frame" ".*foo \\(x=42, ss=\[.\]{3}\\).*" \
+ "scalars"
-gdb_test_no_output "set print frame-arguments all"
-gdb_test "frame" \
- ".*foo \\(x=42, ss={a = {m = 1}, b = {m = 2}}\\).*" \
- "frame raw,all"
+ gdb_test_no_output "set print frame-arguments all"
+ gdb_test "frame" \
+ ".*foo \\(x=42, ss={a = {m = 1}, b = {m = 2}}\\).*" \
+ "all"
+}