aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/setshow.exp
diff options
context:
space:
mode:
authorMuhammad Bilal <mbilal@sourceware.org>2013-04-24 14:29:17 +0000
committerMuhammad Bilal <mbilal@sourceware.org>2013-04-24 14:29:17 +0000
commitbf9e4d0c1f88710c2a389bf4b1bdf1d0d83fa7f4 (patch)
tree23d70aeb0bcb8238e01dd4cdd79c9b198a7d7353 /gdb/testsuite/gdb.base/setshow.exp
parentad83dabf1c9d2fa1f8e228ffb7db60ff25d63937 (diff)
downloadgdb-bf9e4d0c1f88710c2a389bf4b1bdf1d0d83fa7f4.zip
gdb-bf9e4d0c1f88710c2a389bf4b1bdf1d0d83fa7f4.tar.gz
gdb-bf9e4d0c1f88710c2a389bf4b1bdf1d0d83fa7f4.tar.bz2
2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/10462 * cli/cli-decode.c (lookup_command): Show an error if there is no space before argument. 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com> PR gdb/10462 * gdb.base/setshow.exp: Add test case.
Diffstat (limited to 'gdb/testsuite/gdb.base/setshow.exp')
-rw-r--r--gdb/testsuite/gdb.base/setshow.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp
index d33d6c7..c78d2df 100644
--- a/gdb/testsuite/gdb.base/setshow.exp
+++ b/gdb/testsuite/gdb.base/setshow.exp
@@ -259,3 +259,10 @@ gdb_test "show verbose" "Verbose printing of informational messages is on..*" "s
gdb_test_no_output "set verbose off" "set verbose off"
#test show verbose off
gdb_test "show verbose" "Verbosity is off..*" "show verbose (off)"
+#test argument must be preceded by space
+foreach x {"history file" "solib-search-path" "data-directory"} {
+ foreach y {"/home/" "." "~/home" "=home"} {
+ gdb_test "set $x$y" "Argument must be preceded by space." \
+ "$x is not set to $y"
+ }
+}