diff options
Diffstat (limited to 'test/test_epoll.rb')
-rw-r--r-- | test/test_epoll.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_epoll.rb b/test/test_epoll.rb index 88d0b6c..61b6e8c 100644 --- a/test/test_epoll.rb +++ b/test/test_epoll.rb @@ -348,11 +348,7 @@ class TestEpoll < Testcase def test_new @ep.close io = Epoll.new.to_io - if RUBY_VERSION.to_f >= 2.0 - assert_equal 1, io.fcntl(Fcntl::F_GETFD) - else - assert_equal 0, io.fcntl(Fcntl::F_GETFD) - end + check_cloexec(io) end def test_delete |