gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 17 Mar 2013 20:37:32 +0000 (20:37 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 17 Mar 2013 20:37:32 +0000 (20:37 +0000)
* gdb.base/valgrind-infcall.exp
(continue #$continue_count) <remote connection closed>
(continue #$continue_count) <valgrind vgdb has terminated>: Add kill of
$valgrind_pid.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/valgrind-infcall.exp

index 9d0a7c473c3a7427fceaa0b4882e1bb188a869f6..8888313f2471fa7863aec67e84ba43514375cacc 100644 (file)
@@ -1,3 +1,10 @@
+2013-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/valgrind-infcall.exp
+       (continue #$continue_count) <remote connection closed>
+       (continue #$continue_count) <valgrind vgdb has terminated>: Add kill of
+       $valgrind_pid.
+
 2013-03-15  Tom Tromey  <tromey@redhat.com>
 
        * gdb.cp/overload.cc (intintfunc): New.
index 5ca83d43b94b7008d0d507548a023120bf749c39..40c8464bbe83d707fa70b57fa2677196c8da34b9 100644 (file)
@@ -101,10 +101,14 @@ while {$loop && $continue_count < 100} {
        }
        -re "Remote connection closed.*\r\n$gdb_prompt $" {
            fail "$test (remote connection closed)"
+           # Only if valgrind got stuck.
+           remote_exec host "kill -9 ${valgrind_pid}"
            return -1
        }
        -re "The program is not being run\\.\r\n$gdb_prompt $" {
            fail "$test (valgrind vgdb has terminated)"
+           # Only if valgrind got stuck.
+           remote_exec host "kill -9 ${valgrind_pid}"
            return -1
        }
        -re "\r\n$gdb_prompt $" {