diff options
-rw-r--r-- | test/ruby/test_notimp.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb index 2a5a12a5f3..0fad1cd66b 100644 --- a/test/ruby/test_notimp.rb +++ b/test/ruby/test_notimp.rb @@ -28,7 +28,10 @@ class TestNotImplement < Test::Unit::TestCase pid = nil } ensure - Process.kill :KILL, pid if pid + if pid + Process.kill :KILL, pid + Process.wait pid + end end if Process.respond_to?(:fork) def test_call_lchmod |