aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@embecosm.com>2022-06-29 15:27:41 +0100
committerMaciej W. Rozycki <macro@embecosm.com>2022-06-29 15:27:41 +0100
commit575fd4cffd05be7bd56112afa8688201d70d3043 (patch)
tree6ebcf489cdcdc97800f5afb5fedba46069f87ae5 /gdb/testsuite
parent6c0fe6d8f963eee3da16bf4895b1c592596240ff (diff)
downloadgdb-575fd4cffd05be7bd56112afa8688201d70d3043.zip
gdb-575fd4cffd05be7bd56112afa8688201d70d3043.tar.gz
gdb-575fd4cffd05be7bd56112afa8688201d70d3043.tar.bz2
GDB: Remove extraneous full stops from `set' command error messages
With errors given for bad commands such as `set annotate' or `set width' we produce an extraneous full stop within parentheses: (gdb) set annotate Argument required (integer to set it to.). (gdb) set width Argument required (integer to set it to, or "unlimited".). (gdb) This is grammatically incorrect, so remove the full stop and adjust the testsuite accordingly.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.base/with.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/with.exp b/gdb/testsuite/gdb.base/with.exp
index 6cde27d..ca19a18 100644
--- a/gdb/testsuite/gdb.base/with.exp
+++ b/gdb/testsuite/gdb.base/with.exp
@@ -99,14 +99,14 @@ with_test_prefix "maint" {
test_with_error "boolean" "2" "\"on\" or \"off\" expected\\."
test_with_error "uinteger" "-1" "integer -1 out of range"
test_with_error "uinteger" "" \
- "Argument required \\(integer to set it to, or \"unlimited\"\\.\\)\\."
+ "Argument required \\(integer to set it to, or \"unlimited\"\\)\\."
test_with_error "zuinteger" "-1" "integer -1 out of range"
test_with_error "zuinteger" "" \
- "Argument required \\(integer to set it to\\.\\)\\."
+ "Argument required \\(integer to set it to\\)\\."
test_with_error "zuinteger-unlimited" "-2" \
"only -1 is allowed to set as unlimited"
test_with_error "zuinteger-unlimited" "" \
- "Argument required \\(integer to set it to, or \"unlimited\"\\.\\)\\."
+ "Argument required \\(integer to set it to, or \"unlimited\"\\)\\."
test_with_error "filename" "" \
"Argument required \\(filename to set it to\\.\\)\\."
test_with_error "enum" "" \
@@ -243,7 +243,7 @@ with_test_prefix "errors" {
"Cannot use this setting with the \"with\" command"
gdb_test "with print elements -- p 1" \
- "Argument required \\(integer to set it to, or \"unlimited\"\\.\\)\\."
+ "Argument required \\(integer to set it to, or \"unlimited\"\\)\\."
gdb_test "with -- p 1" \
"Missing setting before '--' delimiter"