diff options
Diffstat (limited to 'test/test_inotify.rb')
-rw-r--r-- | test/test_inotify.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_inotify.rb b/test/test_inotify.rb index c91d6e4..5cf5839 100644 --- a/test/test_inotify.rb +++ b/test/test_inotify.rb @@ -17,11 +17,7 @@ class TestInotify < Testcase def test_new @ino = Inotify.new assert_kind_of(IO, ino) - if RUBY_VERSION.to_f >= 2.0 - assert_equal 1, ino.fcntl(Fcntl::F_GETFD) - else - assert_equal 0, ino.fcntl(Fcntl::F_GETFD) - end + check_cloexec(ino) end def test_constants |