6 Thread.abort_on_exception = true
7 require 'sleepy_penguin'
9 class TestEpollIO < Test::Unit::TestCase
11 RBX = defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'rbx')
15 @epio = Epoll::IO.new(nil)
19 @epio.epoll_ctl(Epoll::CTL_ADD, @wr, Epoll::OUT)
21 @epio.epoll_wait { |events, obj| ev << [ events, obj ] }
22 assert_equal([[Epoll::OUT, @wr]], ev)
24 end if defined?(SleepyPenguin::Epoll)