1 require_relative 'helper'
6 class TestEpollIO < Test::Unit::TestCase
11 @epio = Epoll::IO.new(nil)
15 @epio.epoll_ctl(Epoll::CTL_ADD, @wr, Epoll::OUT)
17 @epio.epoll_wait { |events, obj| ev << [ events, obj ] }
18 assert_equal([[Epoll::OUT, @wr]], ev)
21 class EpSub < Epoll::IO
29 assert_equal Fcntl::FD_CLOEXEC, tmp.fcntl(Fcntl::F_GETFD)
32 end if defined?(SleepyPenguin::Epoll)