From a7198a3c739f7c09f21f69df8611ae47780e3a68 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 12 Jun 2011 18:20:25 +0000 Subject: Ignore exception from Process.kill. On NetBSD this usually raises Errno::ESRCH. Of course, the process is already finished and should be ignored. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/testunit/test_parallel.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb index 1ef95d2287..44c15f73b9 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 -- cgit v1.2.3