summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/virtfunc.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.c++/virtfunc.exp')
-rw-r--r--gdb/testsuite/gdb.c++/virtfunc.exp18
1 files changed, 3 insertions, 15 deletions
diff --git a/gdb/testsuite/gdb.c++/virtfunc.exp b/gdb/testsuite/gdb.c++/virtfunc.exp
index 2741cf6293a..dbd575cfb32 100644
--- a/gdb/testsuite/gdb.c++/virtfunc.exp
+++ b/gdb/testsuite/gdb.c++/virtfunc.exp
@@ -915,12 +915,11 @@ proc test_virtual_calls {} {
#
# -- chastain 2002-02-20
- if {$gcc_compiled} then { setup_xfail "*-*-*" }
-
send_gdb "print pEe->D::vg()\n"
- setup_xfail "*-*-*"
gdb_expect {
-re ".* = 102$nl$gdb_prompt $" { pass "print pEe->D::vg()" }
+ -re "Attempt to take address of value not located in memory.\r\n$gdb_prompt $"
+ { kfail "gdb/1064" "print pEe->D::vg()" }
-re ".*$gdb_prompt $" { fail "print pEe->D::vg()" }
timeout { fail "print pEe->D::vg() (timeout)" }
eof { fail "print pEe->D::vg() ($GDB dumped core) (FIXME)" ; gdb_virtfunc_restart; return }
@@ -937,18 +936,7 @@ proc do_tests {} {
gdb_start;
gdb_virtfunc_init;
- # Get the debug format for the compiled test case. If that
- # format is DWARF 1 then just skip all the tests since none of
- # them will pass.
-
- if [ runto_main ] then {
- get_debug_format
- if [ setup_xfail_format "DWARF 1" ] then {
- fail "C++ tests skipped due to limited C++ support in DWARF 1 debug format"
- return
- }
- clear_xfail "*-*-*"
- }
+ runto_main
test_ptype_of_classes