about summary refs log tree commit homepage
path: root/test/test_posix_mq.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-07 09:28:57 +0000
committerEric Wong <normalperson@yhbt.net>2010-01-07 01:33:57 -0800
commit3700db51399e4949ed314ad0545d037b7762064e (patch)
tree39d37cc0942d31250ec088d19cea86cf5e2c31a5 /test/test_posix_mq.rb
parent40d61f55ac53e3cd2f229d0b032da03032e3d53d (diff)
downloadruby_posix_mq-3700db51399e4949ed314ad0545d037b7762064e.tar.gz
SIGEV_THREAD is not easy to implement, so many platforms
do not implement it.
Diffstat (limited to 'test/test_posix_mq.rb')
-rw-r--r--test/test_posix_mq.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb
index 58ee6e5..1fa029b 100644
--- a/test/test_posix_mq.rb
+++ b/test/test_posix_mq.rb
@@ -249,7 +249,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
     assert_nothing_raised { @mq.notify { |mq| q << "hi" } }
     @mq << "bye"
     assert_equal "hi", q.pop
-  end
+  end if POSIX_MQ.respond_to?(:notify)
 
   def test_notify_thread
     q = Queue.new
@@ -262,5 +262,5 @@ class Test_POSIX_MQ < Test::Unit::TestCase
     assert x.instance_of?(Thread)
     assert Thread.current != x
     assert ! thr.alive?
-  end
+  end if POSIX_MQ.respond_to?(:notify)
 end