From: Jan Kratochvil Date: Wed, 27 Feb 2013 18:46:52 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6447023f098c9c9eb5fc4739cd81457aa93fcf7d;p=binutils-gdb.git gdb/testsuite/ * gdb.base/valgrind-infcall.exp (valgrind_pid): New variable. Add final kill of ${valgrind_pid}. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3a8a8e1bb80..3b34dc63cf2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-02-27 Jan Kratochvil + + * gdb.base/valgrind-infcall.exp (valgrind_pid): New variable. + Add final kill of ${valgrind_pid}. + 2013-02-20 Siva Chandra Reddy * gdb.python/py-arch.c: New test case diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp index 50a273f13ae..5ca83d43b94 100644 --- a/gdb/testsuite/gdb.base/valgrind-infcall.exp +++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp @@ -79,6 +79,7 @@ gdb_test_multiple "" $test { } # Do not kill valgrind. +set valgrind_pid [exp_pid -i [board_info host fileid]] unset gdb_spawn_id set board [host_info name] unset_board_info fileid @@ -122,3 +123,6 @@ gdb_test_multiple $test $test { pass $test } } + +# Only if valgrind got stuck. +remote_exec host "kill -9 ${valgrind_pid}"