fix deadlock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6aee0a5bca
commit
935933d0d3
@ -493,8 +493,11 @@ class TestIO < Test::Unit::TestCase
|
||||
w.write "zz"
|
||||
src = StringIO.new("abcd")
|
||||
IO.copy_stream(src, w)
|
||||
w.close
|
||||
t = Thread.new {
|
||||
w.close
|
||||
}
|
||||
assert_equal("zzabcd", r.read)
|
||||
t.join
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user