test/test_poll.rb in kgio-2.7.4 vs test/test_poll.rb in kgio-2.8.0
- old
+ new
@@ -124,11 +124,9 @@
empty += 1 until Kgio.poll(set.dup, 100)
_, status = Process.waitpid2(pid)
assert status.success?, status.inspect
assert usr1 > 0, "usr1: #{usr1}"
- rescue Object => err
- p [ :err, err ]
- ensure
- trap(:USR1, "DEFAULT")
- end
+ ensure
+ trap(:USR1, "DEFAULT")
+ end unless RUBY_PLATFORM =~ /kfreebsd-gnu/
end if Kgio.respond_to?(:poll)