From 8a67b59c317a83eb46674d9510faa52823fa5ced Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 25 Oct 2017 13:29:27 +0000 Subject: Get rid of a test error on Windows caused by r60417 * test/testunit/test_parallel.rb (teardown): this code seems to allow `Errno::EPIPE` from @worker_in. in such case, `close` may also raise the same exception. I'm not confident in this conclusion and still doubt that we should revert r60417 instead of this commit or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/testunit/test_parallel.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/testunit/test_parallel.rb b/test/testunit/test_parallel.rb index 3e7c2619e1..fea46787b5 100644 --- a/test/testunit/test_parallel.rb +++ b/test/testunit/test_parallel.rb @@ -34,8 +34,12 @@ module TestParallel end end ensure - @worker_in.close - @worker_out.close + begin + @worker_in.close + @worker_out.close + rescue Errno::EPIPE + # may already broken and rescue'ed in above code + end end def test_run -- cgit v1.2.3