From dc226d5aeab65bcb52a9678695cd2cbd0d80cade Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 4 Jun 2010 21:45:04 +0000 Subject: [PATCH] 2010-06-04 Michael Snyder * gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/pr-1210.exp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index da283b8..10a3079 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-06-04 Michael Snyder + + * gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple. + 2010-06-04 Doug Evans * gdb.python/py-prettyprint.exp: Add new test for enabled and diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-1210.exp index aa5e607..85b49ac 100644 --- a/gdb/testsuite/gdb.cp/pr-1210.exp +++ b/gdb/testsuite/gdb.cp/pr-1210.exp @@ -52,7 +52,7 @@ if ![runto_main] then { gdb_test "next" ".*return 0;" "step past initialization" -gdb_test_multiple "print *obj" "" { +gdb_test_multiple "print *obj" "print *obj" { -re "Cannot access memory.*$gdb_prompt $" { fail "print *obj" } @@ -61,7 +61,7 @@ gdb_test_multiple "print *obj" "" { } } -gdb_test_multiple "print obj->myB" "" { +gdb_test_multiple "print obj->myB" "print obj->myB" { -re "Cannot access memory.*$gdb_prompt $" { fail "print obj->myB" } -- 2.7.4