summaryrefslogtreecommitdiff
path: root/gdb
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
commitb955c336f93a1b8ab433b713739c145c56f5c027 (patch)
treeaf14d303d1fcf62c271ed9d5a08d28ee3ed09e2d /gdb
parentGDB: Remove extraneous full stops from `set' command error messages (diff)
downloadbinutils-gdb-b955c336f93a1b8ab433b713739c145c56f5c027.tar.gz
binutils-gdb-b955c336f93a1b8ab433b713739c145c56f5c027.tar.bz2
binutils-gdb-b955c336f93a1b8ab433b713739c145c56f5c027.zip
GDB/testsuite: Tighten `set print elements' error check
Match the whole error message expected to be given rather than omitting the part about the "unlimited" keyword. There's no point in omitting the missing part first, and second with an upcoming change the part in parentheses will no longer be a fixed string, so doing a full match will ensure the algorithm correctly builds the message expected here. Also avoid any wildcard matches.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/default.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index 23379f6ec01..e1e0d311b6c 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -525,7 +525,8 @@ gdb_test_no_output "set print asm-demangle" "set print asm-demangle"
#test set print demangle
gdb_test_no_output "set print demangle" "set print demangle"
#test set print elements
-gdb_test "set print elements" "Argument required .integer to set it to.*"
+gdb_test "set print elements" \
+ "Argument required \\(integer to set it to, or \"unlimited\"\\)\\."
#test set print object
gdb_test_no_output "set print object" "set print object"
#test set print pretty