This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: testsuite oversensitive to whitespace in C++ types



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 $" {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]