summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testunit/test_parallel.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb
index 1ef95d22871..44c15f73b93 100644
--- a/test/testunit/test_parallel.rb
+++ b/test/testunit/test_parallel.rb
@@ -27,7 +27,10 @@ module TestParallel
Process.waitpid(@worker_pid)
end
rescue IOError, Errno::EPIPE, Timeout::Error
- Process.kill(:KILL, @worker_pid)
+ begin
+ Process.kill(:KILL, @worker_pid)
+ rescue Errno::ESRCH
+ end
end
end
end