diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-27 18:46:52 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-02-27 18:46:52 +0000 |
commit | 6447023f098c9c9eb5fc4739cd81457aa93fcf7d (patch) | |
tree | 6c69a0d5c97f6636e50664e539f7d141338a2886 /gdb/testsuite/gdb.base/valgrind-infcall.exp | |
parent | e1f58301ddf98b17ab9f2d94e0e636e2893a7a1e (diff) | |
download | gdb-6447023f098c9c9eb5fc4739cd81457aa93fcf7d.zip gdb-6447023f098c9c9eb5fc4739cd81457aa93fcf7d.tar.gz gdb-6447023f098c9c9eb5fc4739cd81457aa93fcf7d.tar.bz2 |
gdb/testsuite/
* gdb.base/valgrind-infcall.exp (valgrind_pid): New variable.
Add final kill of ${valgrind_pid}.
Diffstat (limited to 'gdb/testsuite/gdb.base/valgrind-infcall.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/valgrind-infcall.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp index 50a273f..5ca83d4 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}" |