summaryrefslogtreecommitdiff
path: root/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb')
-rw-r--r--test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
index 453870796e2..677c013d4b3 100644
--- a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
+++ b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
@@ -52,5 +52,8 @@ class TestWaitForSingleFD < Test::Unit::TestCase
end
end
-
+ def test_wait_for_kqueue
+ skip 'no kqueue' unless IO.respond_to?(:kqueue_test_wait)
+ assert_equal RB_WAITFD_IN, IO.kqueue_test_wait
+ end
end