aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-05-10 18:38:09 +0000
committerJim Blandy <jimb@codesourcery.com>2002-05-10 18:38:09 +0000
commitc4b7bc2bea4cf67926e48f3c32f297d2f17c04fa (patch)
tree6d82d01feb05e6267a5bff0f35c8abc7e87906e9 /gdb/testsuite/lib
parent9ab3e5325dfcddb59b4a081c7c6bc19c5ef88df8 (diff)
downloadgdb-c4b7bc2bea4cf67926e48f3c32f297d2f17c04fa.zip
gdb-c4b7bc2bea4cf67926e48f3c32f297d2f17c04fa.tar.gz
gdb-c4b7bc2bea4cf67926e48f3c32f297d2f17c04fa.tar.bz2
* gdb.base/printcmds.exp (test_integer_literals_rejected):
Recognize more detailed error message produced by the macro expander's lexical analyzer. * lib/gdb.exp (test_print_reject): Same.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/gdb.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 71d937a..c41ed72 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -627,6 +627,14 @@ proc test_print_reject { args } {
pass "reject $sendthis"
return 1
}
+ -re "Unmatched single quote.*$gdb_prompt $" {
+ pass "reject $sendthis"
+ return 1
+ }
+ -re "A character constant must contain at least one character.*$gdb_prompt $" {
+ pass "reject $sendthis"
+ return 1
+ }
-re "$expectthis.*$gdb_prompt $" {
pass "reject $sendthis"
return 1