summaryrefslogtreecommitdiff
path: root/test/testunit/test_parallel.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-12 18:20:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-12 18:20:25 +0000
commita7198a3c739f7c09f21f69df8611ae47780e3a68 (patch)
treee090ce5905bbb0e33bbe4f1fefbf2a7179a27c21 /test/testunit/test_parallel.rb
parente445f1c6843f6b9bca47084fefd8ef751a70cc98 (diff)
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
Diffstat (limited to 'test/testunit/test_parallel.rb')
-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 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