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

fix deadlock.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-04-20 11:30:43 +00:00
parent 6aee0a5bca
commit 935933d0d3

View file

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