summaryrefslogtreecommitdiff
path: root/test/ruby/test_notimp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_notimp.rb')
-rw-r--r--test/ruby/test_notimp.rb5
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