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:
parent
6aee0a5bca
commit
935933d0d3
1 changed files with 4 additions and 1 deletions
|
@ -493,8 +493,11 @@ class TestIO < Test::Unit::TestCase
|
||||||
w.write "zz"
|
w.write "zz"
|
||||||
src = StringIO.new("abcd")
|
src = StringIO.new("abcd")
|
||||||
IO.copy_stream(src, w)
|
IO.copy_stream(src, w)
|
||||||
|
t = Thread.new {
|
||||||
w.close
|
w.close
|
||||||
|
}
|
||||||
assert_equal("zzabcd", r.read)
|
assert_equal("zzabcd", r.read)
|
||||||
|
t.join
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue