diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-04-24 17:39:14 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-04-24 17:39:14 +0000 |
commit | a966fde5a0a00f6f85788f616f2f711db9dca0c6 (patch) | |
tree | 821df791ab43cca0139202ff71250ec6a584767b | |
parent | 6840198f93340023b478d4df838efb37b9b27998 (diff) | |
download | gdb-a966fde5a0a00f6f85788f616f2f711db9dca0c6.zip gdb-a966fde5a0a00f6f85788f616f2f711db9dca0c6.tar.gz gdb-a966fde5a0a00f6f85788f616f2f711db9dca0c6.tar.bz2 |
* gdb.c++/classes.exp (ptype class A): Tolerate whitespace
variations.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/classes.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d8afbe5..69b29c3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-04-24 Jim Blandy <jimb@redhat.com> + + * gdb.c++/classes.exp (ptype class A): Tolerate whitespace + variations. + 2001-04-22 Michael Chastain <chastain@redhat.com> * 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 39bc275..2e2e89c 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 $" { |