From e116324103cecf418ecb0947a47330c1ad9e1e40 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 8 Jul 2021 11:24:33 -0400 Subject: [PATCH] gdb.base/setshow.exp: fix duplicate test name 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(-) diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp index bfc689b184e..6e09361c9d7 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" -- 2.30.2