This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: testsuite oversensitive to whitespace in C++ types
- To: gdb-patches at sources dot redhat dot com
- Subject: PATCH: testsuite oversensitive to whitespace in C++ types
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Tue, 24 Apr 2001 12:41:23 -0500 (EST)
I've committed this. Certainly there is more work like this needed,
but this is the way it would go.
2001-04-13 Jim Blandy <jimb@redhat.com>
* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
variations.
Index: gdb/testsuite/gdb.c++/classes.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.c++/classes.exp,v
retrieving revision 1.35
diff -c -r1.35 classes.exp
*** gdb/testsuite/gdb.c++/classes.exp 2001/02/18 20:09:06 1.35
--- gdb/testsuite/gdb.c++/classes.exp 2001/04/14 08:04:26
***************
*** 223,229 ****
# it to print as "struct".
send_gdb "ptype class A\n"
gdb_expect {
! -re "type = (class|struct) A \{(${ws}public:|)${ws}int a;${ws}int x;((${ws}A & operator=\\(A const &\\);)|(${ws}A\\(A const &\\);)|(${ws}A\\(void\\);))*${ws}\}$nl$gdb_prompt $" {
pass "ptype class A"
}
-re ".*$gdb_prompt $" {
--- 223,229 ----
# it to print as "struct".
send_gdb "ptype class A\n"
gdb_expect {
! -re "type = (class|struct) A \{(${ws}public:|)${ws}int a;${ws}int x;((${ws}A & operator=\\(A const ?&\\);)|(${ws}A\\(A const ?&\\);)|(${ws}A\\(void\\);))*${ws}\}$nl$gdb_prompt $" {
pass "ptype class A"
}
-re ".*$gdb_prompt $" {