diff options
-rw-r--r-- | test/mgmt_persist_client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mgmt_persist_client.rb b/test/mgmt_persist_client.rb index 00c59f7..fc2c592 100644 --- a/test/mgmt_persist_client.rb +++ b/test/mgmt_persist_client.rb @@ -60,5 +60,10 @@ class TestMgmtPersistClient < Test::Unit::TestCase def teardown @to_close.each { |io| io.close unless io.closed? } FileUtils.rm_rf(@tmpdir) + if @pid + Process.kill(:QUIT, @pid) rescue nil + _, status = Process.waitpid2(@pid) + assert status.success?, status.inspect + end end end |