aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-03-17 20:37:32 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-03-17 20:37:32 +0000
commita09ae1c1e873dca08128d8c9cc225a67efd74870 (patch)
tree348c0ebd090bbbc7828f869b3c1e80cadb92ff2c /gdb
parent1cdd32326fa4a5f8812eef6f754d8a4b018fc959 (diff)
downloadgdb-a09ae1c1e873dca08128d8c9cc225a67efd74870.zip
gdb-a09ae1c1e873dca08128d8c9cc225a67efd74870.tar.gz
gdb-a09ae1c1e873dca08128d8c9cc225a67efd74870.tar.bz2
gdb/testsuite/
* gdb.base/valgrind-infcall.exp (continue #$continue_count) <remote connection closed> (continue #$continue_count) <valgrind vgdb has terminated>: Add kill of $valgrind_pid.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.base/valgrind-infcall.exp4
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9d0a7c4..8888313 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp
index 5ca83d4..40c8464 100644
--- a/gdb/testsuite/gdb.base/valgrind-infcall.exp
+++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp
@@ -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 $" {