1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
usa 2017-10-25 13:29:27 +00:00
parent fdb771d82d
commit 8a67b59c31

View file

@ -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