test_io.rb: ignore stream closed IOError
* test/ruby/test_io.rb (test_readpartial_locktmp): stream closed IOError while reading is not a matter. [Bug #10193] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1a37c5a4b6
commit
6bd80ffc22
@ -2867,15 +2867,19 @@ End
|
||||
Thread.pass until th.stop?
|
||||
buf.replace("")
|
||||
assert_empty(buf, bug6099)
|
||||
th.join rescue ($@.concat(caller); raise) unless th.alive?
|
||||
assert_predicate(th, :alive?)
|
||||
w.write(data)
|
||||
Thread.pass while th.alive?
|
||||
th.join rescue ($@.concat(caller); raise)
|
||||
end
|
||||
assert_equal(data, buf, bug6099)
|
||||
rescue RuntimeError # can't modify string; temporarily locked
|
||||
ensure
|
||||
th.join if th
|
||||
if th
|
||||
begin
|
||||
th.join
|
||||
rescue IOError
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_advise_pipe
|
||||
|
Loading…
x
Reference in New Issue
Block a user