aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/completion.exp
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-05-17 22:03:34 +0000
committerJim Blandy <jimb@codesourcery.com>2002-05-17 22:03:34 +0000
commitf617d2b61f0dc2c2367f27d5497b4ea1c58d87f8 (patch)
treefcd4ae58232130faf008548fef2388ec71be137f /gdb/testsuite/gdb.base/completion.exp
parent40cd92ad2f905fc548fb8c27a9260aabb1f4e4bc (diff)
downloadgdb-f617d2b61f0dc2c2367f27d5497b4ea1c58d87f8.zip
gdb-f617d2b61f0dc2c2367f27d5497b4ea1c58d87f8.tar.gz
gdb-f617d2b61f0dc2c2367f27d5497b4ea1c58d87f8.tar.bz2
* gdb.base/completion.exp: Recognize the more detailed error
messages produced by the macro expander's lexical analyzer.
Diffstat (limited to 'gdb/testsuite/gdb.base/completion.exp')
-rw-r--r--gdb/testsuite/gdb.base/completion.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index f8f4568..332e1697 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -414,7 +414,7 @@ gdb_expect {
-re "^p 'a\\\x07$"\
{ send_gdb "\n"
gdb_expect {
- -re "Invalid character constant\\..*$gdb_prompt $"\
+ -re "(Invalid character constant\\.|Unmatched single quote\\.).*$gdb_prompt $"\
{ pass "complete 'p \'a'"}
-re ".*$gdb_prompt $" { fail "complete 'p \'a'"}
timeout {fail "(timeout) complete 'p \'a'"}
@@ -433,7 +433,7 @@ gdb_expect {
-re ".*argv.*$gdb_prompt p .a$" {
send_gdb "\n"
gdb_expect {
- -re "Invalid character constant\\..*$gdb_prompt $" {
+ -re "(Invalid character constant\\.|Unmatched single quote\\.).*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" { fail "complete (2) 'p \'a'" }
@@ -446,7 +446,7 @@ gdb_expect {
-re "\\(gdb\\) p 'a$" {
send_gdb "\n"
gdb_expect {
- -re "Invalid character constant\\..*$gdb_prompt $" {
+ -re "(Invalid character constant\\.|Unmatched single quote\\.).*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" {