test/test_kqueue.rb in sleepy_penguin-3.5.0 vs test/test_kqueue.rb in sleepy_penguin-3.5.1
- old
+ new
@@ -4,9 +4,10 @@
include SleepyPenguin
def test_kqueue
kq = Kqueue.new
assert_kind_of IO, kq.to_io
+ assert_predicate kq.to_io, :close_on_exec?
rd, wr = IO.pipe
ev = Kevent[rd.fileno, EvFilt::READ, Ev::ADD|Ev::ONESHOT, 0, 0, rd]
thr = Thread.new do
kq.kevent(ev)
wr.syswrite "."