diff options
Diffstat (limited to 'test/test_posix_mq.rb')
-rw-r--r-- | test/test_posix_mq.rb | 4 |
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 |