* gdb.base/completion.exp: Recognize the more detailed error
authorJim Blandy <jimb@codesourcery.com>
Fri, 17 May 2002 22:03:34 +0000 (22:03 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 17 May 2002 22:03:34 +0000 (22:03 +0000)
messages produced by the macro expander's lexical analyzer.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/completion.exp

index 2705785946eb0f229ce62aedeb3b0df47260cc3d..201f85e1eb19c3853f3cb838e667d563d49d4704 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-17  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.base/completion.exp: Recognize the more detailed error
+       messages produced by the macro expander's lexical analyzer.
+
 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
 
         * gdb.arch/altivec-abi.c: New file.
index f8f4568e5f86e1a34b02f9b1e12d9d71c47fb3f0..332e1697a7fae02277fbde06863aa3982283bcfa 100644 (file)
@@ -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 $" {