From: Simon Marchi Date: Thu, 8 Jul 2021 15:24:33 +0000 (-0400) Subject: gdb.base/setshow.exp: fix duplicate test name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e116324103cecf418ecb0947a47330c1ad9e1e40;p=binutils-gdb.git 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 --- 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"