mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rescue NotImplementedError by fcntl.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65a2518a1e
commit
e2e305605d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue