diff options
author | David Carlton <carlton@bactrian.org> | 2003-02-26 20:30:05 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-02-26 20:30:05 +0000 |
commit | 0b71dc91d95e86b1252709a17fb33e4cfeab55a3 (patch) | |
tree | 2ccb7ad452ae69e7a9ecc9ac34a36662de3899ca | |
parent | dd14ab4396586535833a1574a0d9d81bb809ab04 (diff) | |
download | gdb-0b71dc91d95e86b1252709a17fb33e4cfeab55a3.zip gdb-0b71dc91d95e86b1252709a17fb33e4cfeab55a3.tar.gz gdb-0b71dc91d95e86b1252709a17fb33e4cfeab55a3.tar.bz2 |
2003-02-26 David Carlton <carlton@math.stanford.edu>
* gdb.c++/templates.exp (do_tests): KFAIL the "print Foo<volatile
char *>::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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/templates.exp | 20 |
2 files changed, 24 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 07abdbb..cba8a47 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2003-02-26 David Carlton <carlton@math.stanford.edu> + * gdb.c++/templates.exp (do_tests): KFAIL the "print Foo<volatile + char *>::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 <carlton@math.stanford.edu> + * gdb.c++/templates.exp (do_tests): Convert XFAILs about printing template types into either PASSes or KFAILs (corresponding to PR c++/57). Tweak indentation. Update copyright. diff --git a/gdb/testsuite/gdb.c++/templates.exp b/gdb/testsuite/gdb.c++/templates.exp index 54990ec..a7763a2 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<volatile char *> +# 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<volatile char *>::foo\n" gdb_expect { - -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo<volatile char \\*> \\*, int, .*char \\*\\)\\} $hex <Foo<.*char.*\\*>::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo<volatile char *>::foo" } - -re "$gdb_prompt $" { fail "print Foo<volatile char *>::foo" } - timeout { fail "(timeout) print Foo<volatile char *>::foo" } + -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo<volatile char ?\\*> \\*, int, .*char \\*\\)\\} $hex <Foo<.*char.*\\*>::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo<volatile char *>::foo" } + -re "No symbol \"Foo<volatile char \\*>\" in current context.\r\n$gdb_prompt $" + { kfail "gdb/33" "print Foo<volatile char *>::foo" } + -re "$gdb_prompt $" { fail "print Foo<volatile char *>::foo" } + timeout { fail "(timeout) print Foo<volatile char *>::foo" } +} + +send_gdb "print Foo<volatile char*>::foo\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{.*char \\*\\((class |)Foo<volatile char ?\\*> \\*, int, .*char \\*\\)\\} $hex <Foo<.*char.*\\*>::foo\\(int, .*char.*\\*\\)>\r\n$gdb_prompt $" { pass "print Foo<volatile char*>::foo" } + -re "No symbol \"Foo<volatile char\\*>\" in current context.\r\n$gdb_prompt $" + { kfail "gdb/33" "print Foo<volatile char*>::foo" } + -re "$gdb_prompt $" { fail "print Foo<volatile char*>::foo" } + timeout { fail "(timeout) print Foo<volatile char*>::foo" } } # Template Bar<T, int> |