diff options
Diffstat (limited to 'test/ruby/test_readpartial.rb')
-rw-r--r-- | test/ruby/test_readpartial.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_readpartial.rb b/test/ruby/test_readpartial.rb index 32139c4d9d..2232068c1b 100644 --- a/test/ruby/test_readpartial.rb +++ b/test/ruby/test_readpartial.rb @@ -18,7 +18,11 @@ class TestReadPartial < Test::Unit::TestCase yield r, w } make_pipe {|r, w| - r.fcntl(Fcntl::F_SETFL, r.fcntl(Fcntl::F_GETFL) | Fcntl::O_NONBLOCK) + begin + r.fcntl(Fcntl::F_SETFL, r.fcntl(Fcntl::F_GETFL) | Fcntl::O_NONBLOCK) + rescue NotImplementedError + break + end yield r, w } end |