From: David Carlton Date: Wed, 26 Feb 2003 20:30:05 +0000 (+0000) Subject: 2003-02-26 David Carlton X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b71dc91d95e86b1252709a17fb33e4cfeab55a3;p=binutils-gdb.git 2003-02-26 David Carlton * gdb.c++/templates.exp (do_tests): KFAIL the "print Foo::foo" test with respect to PR c++/33. Create a new test which is identical to that one except that it doesn't put the space between the "char" and the "*"; KFAIL it, too. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 07abdbb0277..cba8a476328 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-02-26 David Carlton + + * gdb.c++/templates.exp (do_tests): KFAIL the "print Foo::foo" test with respect to PR c++/33. Create a new test + which is identical to that one except that it doesn't put the + space between the "char" and the "*"; KFAIL it, too. + 2003-02-26 David Carlton * gdb.c++/templates.exp (do_tests): Convert XFAILs about printing diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp index 54990ec52c6..a7763a2a52f 100644 --- a/gdb/testsuite/gdb.c++/templates.exp +++ b/gdb/testsuite/gdb.c++/templates.exp @@ -296,11 +296,25 @@ gdb_expect { # print a function from Foo +# This test is sensitive to whitespace matching, so we'll do it twice, +# varying the spacing, because of PR gdb/33. + 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 "$gdb_prompt $" { fail "print Foo::foo" } - timeout { fail "(timeout) print Foo::foo" } + -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo \\*, 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" } + timeout { fail "(timeout) print Foo::foo" } +} + +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 "No symbol \"Foo\" in current context.\r\n$gdb_prompt $" + { kfail "gdb/33" "print Foo::foo" } + -re "$gdb_prompt $" { fail "print Foo::foo" } + timeout { fail "(timeout) print Foo::foo" } } # Template Bar