aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 0afcbbac0c..c3544b930a 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2867,7 +2867,7 @@ End
th = nil
with_pipe do |r,w|
begin
- r.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK)
+ r.nonblock = true
th = Thread.new {r.readpartial(100, buf)}
Thread.pass until th.stop?