1
0
Fork 0
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:
akr 2004-08-16 05:01:26 +00:00
parent 65a2518a1e
commit e2e305605d

View file

@ -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