[04/16] gdb.base/setshow.exp: fix duplicate test name

Message ID 20210714045520.1623120-5-simon.marchi@polymtl.ca
State New
Headers show
Series
  • Bunch of commands related cleanups
Related show

Commit Message

Simon Marchi via Gdb-patches July 14, 2021, 4:55 a.m.
Fix:

    DUPLICATE: gdb.base/setshow.exp: test_setshow_args: show args

by giving some explicit test names.

Change-Id: I2a738d3d3675ab9b45929e71f5aee0ea6bf92072
---
 gdb/testsuite/gdb.base/setshow.exp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

-- 
2.32.0

Patch

diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp
index bfc689b184e5..6e09361c9d70 100644
--- a/gdb/testsuite/gdb.base/setshow.exp
+++ b/gdb/testsuite/gdb.base/setshow.exp
@@ -86,7 +86,8 @@  proc_with_prefix test_setshow_args {} {
 	return
     }
 
-    gdb_test "show args" "Argument list to give program being debugged when it is started is \"\"\."
+    gdb_test "show args" "Argument list to give program being debugged when it is started is \"\"\." \
+	"show args empty"
     gdb_test "p \$_gdb_setting_str(\"args\")" " = \"\""
 
     gdb_test_no_output "set args ~"
@@ -97,7 +98,8 @@  proc_with_prefix test_setshow_args {} {
     gdb_test_no_output "set args foo bar blup baz bubble" "set args"
 
     #test show args
-    gdb_test "show args" "Argument list to give program being debugged when it is started is \"foo bar blup baz bubble\"..*"
+    gdb_test "show args" "Argument list to give program being debugged when it is started is \"foo bar blup baz bubble\"..*" \
+	"show args multiple words"
     gdb_test "p \$_gdb_setting(\"args\")" " = \"foo bar blup baz bubble\"" \
 	"_gdb_setting args"