зеркало из https://github.com/github/ruby.git
bootstraptest update test_io.rb [Bug #15060] [Fix GH-1495]
From: MSP-Greg <greg.mpls@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3fa8d5ba7b
Коммит
fb7a569077
|
@ -30,11 +30,11 @@ assert_finish 10, %q{
|
|||
end
|
||||
}, '[ruby-dev:32566]'
|
||||
|
||||
assert_finish 2, %q{
|
||||
assert_finish 1, %q{
|
||||
r, w = IO.pipe
|
||||
Thread.new(Thread.current) { |parent|
|
||||
Thread.new {
|
||||
w << "ab"
|
||||
Thread.pass until parent.stop?
|
||||
sleep 0.01
|
||||
w << "ab"
|
||||
}
|
||||
r.gets("abab")
|
||||
|
|
Загрузка…
Ссылка в новой задаче