summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/valgrind-db-attach.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 21:22:46 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 21:22:46 +0000
commit67bdab6cc5ae6621ece13253f162037ce676dc65 (patch)
tree795e424b2263acb203728c8d7217f7e284ff21f0 /gdb/testsuite/gdb.base/valgrind-db-attach.exp
parentbb3912236d517f154ab93377fe746d88149bfa88 (diff)
gdb/testsuite/
* gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail. Recognize "command not found".
Diffstat (limited to 'gdb/testsuite/gdb.base/valgrind-db-attach.exp')
-rw-r--r--gdb/testsuite/gdb.base/valgrind-db-attach.exp12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/valgrind-db-attach.exp b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
index 2aa22c1e5e..8382a66cad 100644
--- a/gdb/testsuite/gdb.base/valgrind-db-attach.exp
+++ b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
@@ -34,8 +34,7 @@ set cmd "valgrind --db-attach=yes $db_command $binfile"
set res [remote_spawn host $cmd];
if { $res < 0 || $res == "" } {
verbose -log "Spawning $cmd failed."
- setup_xfail *-*-*
- fail $test
+ unsupported $test
return -1
}
pass $test
@@ -49,8 +48,13 @@ gdb_test_multiple "" $test {
pass $test
}
-re "valgrind: failed to start tool 'memcheck' for platform '.*': No such file or directory" {
- setup_xfail *-*-*
- fail $test
+ 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.
+ unsupported $test
return -1
}
}