From 5bbad94c3964411fc25e986139b2fa1d32c5d797 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 11 Jun 2010 23:27:22 +0000 Subject: [PATCH] * gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrind does not support ELF executable class. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/valgrind-db-attach.exp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 6bfe3531ecf..ac4ff9c8714 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +:010-06-11 Ulrich Weigand + + * gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrind + does not support ELF executable class. + 2010-06-11 Ulrich Weigand * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace. diff --git a/gdb/testsuite/gdb.base/valgrind-db-attach.exp b/gdb/testsuite/gdb.base/valgrind-db-attach.exp index 9ef36d02a9b..36a543c682c 100644 --- a/gdb/testsuite/gdb.base/valgrind-db-attach.exp +++ b/gdb/testsuite/gdb.base/valgrind-db-attach.exp @@ -51,6 +51,10 @@ gdb_test_multiple "" $test { unsupported $test return -1 } + -re "valgrind: wrong ELF executable class" { + unsupported $test + return -1 + } -re "command not found" { # The spawn succeeded, but then valgrind was not found - e.g. if # we spawned SSH to a remote system. -- 2.30.2