test/test_timerfd.rb in sleepy_penguin-3.1.0 vs test/test_timerfd.rb in sleepy_penguin-3.1.0.26.g7181

- old
+ new

@@ -13,9 +13,14 @@ end def test_create tfd = TimerFD.new assert_kind_of(IO, tfd) + if RUBY_VERSION.to_f >= 2.0 + assert_equal 1, tfd.fcntl(Fcntl::F_GETFD) + else + assert_equal 0, tfd.fcntl(Fcntl::F_GETFD) + end end def test_create_nonblock tfd = TimerFD.new(TimerFD::REALTIME, TimerFD::NONBLOCK) flags = tfd.fcntl(Fcntl::F_GETFL) & Fcntl::O_NONBLOCK