gdb/testsuite/
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:22:46 +0000 (21:22 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:22:46 +0000 (21:22 +0000)
* gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail.
Recognize "command not found".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/valgrind-db-attach.exp

index cbe4e77a372a11334aba6b586a5859656d104300..2600307653898de03c299f0c4ecf8f27af8222d9 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/valgrind-db-attach.exp: Use unsupported instead of xfail.
+       Recognize "command not found".
+
 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.arch/thumb2-it.exp (test_it_break): Handle hardware
index 2aa22c1e5ec04230d6ed1cfadc0ac00287aac422..8382a66cadfffaba359f24663e312fcd36de2a36 100644 (file)
@@ -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
     }
 }