diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-14 23:51:35 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-14 23:51:35 +0000 |
commit | 863e24b2b1a1b946c89d32575c2814b564a1bf95 (patch) | |
tree | 7ba4f07a29af87065fd3e1c108ba42f8bfeb33e2 /test | |
parent | baaf3ba189cd31a99fce3a3932cb30fd07e8eb19 (diff) | |
download | ruby-863e24b2b1a1b946c89d32575c2814b564a1bf95.tar.gz |
test_wait_for_single_fd: ensure this works with kqueue
Regardless of future features, this needs to work with
kqueue descriptors across platforms.
Today this will be useful for 3rd-party libraries using
kqueue. In the future, Ruby may use kqueue natively
and we shall ensure we can wait on it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb | 5 |
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 453870796e..677c013d4b 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 |