diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-13 10:31:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-13 10:31:22 +0000 |
commit | 6333dc06a23a80690f60f3659428df88bd19d736 (patch) | |
tree | 44c5857f6880f8ba272c28f8d4e7ad3462ea941a | |
parent | 5b1c49b1cb6c719eb098beae3823cf63d116d8ed (diff) | |
download | cmogstored-6333dc06a23a80690f60f3659428df88bd19d736.tar.gz |
Tests need to cleanup by stopping running processes.
-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 |