From: Jim Blandy Date: Tue, 24 Apr 2001 17:39:14 +0000 (+0000) Subject: * gdb.c++/classes.exp (ptype class A): Tolerate whitespace X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a966fde5a0a00f6f85788f616f2f711db9dca0c6;p=binutils-gdb.git * gdb.c++/classes.exp (ptype class A): Tolerate whitespace variations. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d8afbe58afc..69b29c3aaed 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-04-24 Jim Blandy + + * gdb.c++/classes.exp (ptype class A): Tolerate whitespace + variations. + 2001-04-22 Michael Chastain * gdb.c++/local.exp: Use the 'runto' library function. diff --git a/gdb/testsuite/gdb.c++/classes.exp b/gdb/testsuite/gdb.c++/classes.exp index 39bc275ba3d..2e2e89cf8f5 100644 --- a/gdb/testsuite/gdb.c++/classes.exp +++ b/gdb/testsuite/gdb.c++/classes.exp @@ -224,7 +224,7 @@ proc test_ptype_class_objects {} { # 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 $" { + -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 $" {