From 391750c3554861181bc58aabe75cd4eae91b7f48 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 30 Dec 2020 23:45:36 -0500 Subject: 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 --- gdb/testsuite/gdb.python/py-frame-args.exp | 48 ++++++++++++++++-------------- 1 file changed, 26 insertions(+), 22 deletions(-) (limited to 'gdb/testsuite/gdb.python') 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" +} -- cgit v1.1