This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: make test suite recognize more error messages
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 17 May 2002 13:19:33 -0500 (EST)
- Subject: RFA: make test suite recognize more error messages
I found some more of these.
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.
Index: gdb/testsuite/gdb.base/completion.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/completion.exp,v
retrieving revision 1.12
diff -c -r1.12 completion.exp
*** gdb/testsuite/gdb.base/completion.exp 1 May 2002 15:39:32 -0000 1.12
--- gdb/testsuite/gdb.base/completion.exp 17 May 2002 18:17:41 -0000
***************
*** 414,420 ****
-re "^p 'a\\\x07$"\
{ send_gdb "\n"
gdb_expect {
! -re "Invalid character constant\\..*$gdb_prompt $"\
{ pass "complete 'p \'a'"}
-re ".*$gdb_prompt $" { fail "complete 'p \'a'"}
timeout {fail "(timeout) complete 'p \'a'"}
--- 414,420 ----
-re "^p 'a\\\x07$"\
{ send_gdb "\n"
gdb_expect {
! -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,439 ****
-re ".*argv.*$gdb_prompt p .a$" {
send_gdb "\n"
gdb_expect {
! -re "Invalid character constant\\..*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" { fail "complete (2) 'p \'a'" }
--- 433,439 ----
-re ".*argv.*$gdb_prompt p .a$" {
send_gdb "\n"
gdb_expect {
! -re "(Invalid character constant\\.|Unmatched single quote\\.).*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" { fail "complete (2) 'p \'a'" }
***************
*** 446,452 ****
-re "\\(gdb\\) p 'a$" {
send_gdb "\n"
gdb_expect {
! -re "Invalid character constant\\..*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" {
--- 446,452 ----
-re "\\(gdb\\) p 'a$" {
send_gdb "\n"
gdb_expect {
! -re "(Invalid character constant\\.|Unmatched single quote\\.).*$gdb_prompt $" {
pass "complete (2) 'p \'a'"
}
-re ".*$gdb_prompt $" {