From f6a44727d8355e891e2ddd6fdd4d79d8be5a4ea0 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 17 May 2002 22:03:34 +0000 Subject: [PATCH] * gdb.base/completion.exp: Recognize the more detailed error messages produced by the macro expander's lexical analyzer. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/completion.exp | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2705785946..201f85e1eb 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-05-17 Jim Blandy + + * gdb.base/completion.exp: Recognize the more detailed error + messages produced by the macro expander's lexical analyzer. + 2002-05-14 Elena Zannoni * gdb.arch/altivec-abi.c: New file. diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index f8f4568e5f..332e1697a7 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 $" { -- 2.11.0