зеркало из https://github.com/github/ruby.git
Join a thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
72a77c25e5
Коммит
88fda023aa
|
@ -29,7 +29,7 @@ class TestIONonblock < Test::Unit::TestCase
|
||||||
w << "a" * 4096
|
w << "a" * 4096
|
||||||
result = ""
|
result = ""
|
||||||
timeout(10) {
|
timeout(10) {
|
||||||
Thread.new {
|
t0 = Thread.new {
|
||||||
Thread.pass
|
Thread.pass
|
||||||
w.close
|
w.close
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ class TestIONonblock < Test::Unit::TestCase
|
||||||
# ignore [ruby-dev:35638]
|
# ignore [ruby-dev:35638]
|
||||||
end
|
end
|
||||||
assert_nothing_raised {t.join}
|
assert_nothing_raised {t.join}
|
||||||
|
t0.join
|
||||||
}
|
}
|
||||||
assert_equal(4097, result.size)
|
assert_equal(4097, result.size)
|
||||||
true
|
true
|
||||||
|
|
Загрузка…
Ссылка в новой задаче