зеркало из https://github.com/github/ruby.git
Use syswrite to avoid potential buffering in IO#select spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b75828fdfa
Коммит
494b3aeaea
|
@ -15,7 +15,7 @@ describe "IO.select" do
|
|||
end
|
||||
|
||||
it "returns immediately all objects that are ready for I/O when timeout is 0" do
|
||||
@wr.write("be ready")
|
||||
@wr.syswrite("be ready")
|
||||
result = IO.select [@rd], [@wr], nil, 0
|
||||
result.should == [[@rd], [@wr], []]
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче