diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/kadm5/unit-test/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/kadm5/unit-test/api.1/lock.exp | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/kadm5/unit-test/ChangeLog b/src/lib/kadm5/unit-test/ChangeLog index 446c9af44..aa8e3c472 100644 --- a/src/lib/kadm5/unit-test/ChangeLog +++ b/src/lib/kadm5/unit-test/ChangeLog @@ -1,3 +1,8 @@ +2005-07-08 Ken Raeburn <raeburn@mit.edu> + + * api.1/lock.exp (lock_test_continue): After exiting the loop, + send the process a signal before waiting for it to die. + 2005-06-20 Ken Raeburn <raeburn@mit.edu> * Makefile.in (KDB_DEP_LIB): Use DL_LIB and THREAD_LINKOPTS diff --git a/src/lib/kadm5/unit-test/api.1/lock.exp b/src/lib/kadm5/unit-test/api.1/lock.exp index 6adef5981..bd3fde022 100644 --- a/src/lib/kadm5/unit-test/api.1/lock.exp +++ b/src/lib/kadm5/unit-test/api.1/lock.exp @@ -110,6 +110,8 @@ proc lock_test_continue {test my_spawn_id test_failed fail_output cont cmds} { if {$test_failed == 1} { break } } + # In timeout cases, the process may not be dead yet. + catch { exec kill -9 [exp_pid -i $spawn_id] } x set ret [wait -i $spawn_id] verbose "% Exit $ret" 2 |