From a9e0cf2cae97ccdb21d68ed14167d47a13737d1a Mon Sep 17 00:00:00 2001 From: David Carlton Date: Fri, 28 Feb 2003 17:50:16 +0000 Subject: [PATCH] 2003-02-28 David Carlton * gdb.c++/templates.exp (do_tests): Allow const in the two Foo::foo tests. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.c++/templates.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6d0ed5bc659..a778aa14e67 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-28 David Carlton + + * gdb.c++/templates.exp (do_tests): Allow const in the two + Foo::foo tests. + 2003-02-27 Michael Snyder * gdb.base/restore.c (main): Return zero, so exit code diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp index a7763a2a52f..3ae9891942e 100644 --- a/gdb/testsuite/gdb.c++/templates.exp +++ b/gdb/testsuite/gdb.c++/templates.exp @@ -301,7 +301,7 @@ gdb_expect { send_gdb "print Foo::foo\n" gdb_expect { - -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo \\*, int, .*char \\*\\)\\} $hex ::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo::foo" } + -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo \\*(| const), int, .*char \\*\\)\\} $hex ::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo::foo" } -re "No symbol \"Foo\" in current context.\r\n$gdb_prompt $" { kfail "gdb/33" "print Foo::foo" } -re "$gdb_prompt $" { fail "print Foo::foo" } @@ -310,7 +310,7 @@ gdb_expect { send_gdb "print Foo::foo\n" gdb_expect { - -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo \\*, int, .*char \\*\\)\\} $hex ::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo::foo" } + -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo \\*(| const), int, .*char \\*\\)\\} $hex ::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo::foo" } -re "No symbol \"Foo\" in current context.\r\n$gdb_prompt $" { kfail "gdb/33" "print Foo::foo" } -re "$gdb_prompt $" { fail "print Foo::foo" } -- 2.30.2