diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 13:29:27 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-25 13:29:27 +0000 |
commit | 2e6e5394dc12b4f9f96cf7016957eef9255a9511 (patch) | |
tree | 4b3ceb0423eff02b7cf6dee12320f7947c547147 /test | |
parent | 1753fa891b9a1e02c8c4e2e490c40d2b465c1e64 (diff) | |
download | ruby-2e6e5394dc12b4f9f96cf7016957eef9255a9511.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/testunit/test_parallel.rb | 8 |
1 files 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 |