test: disable IO.select test if #to_io is missing
authorew@fbsd90-32.(none) <ew@fbsd90-32.(none)>
Wed, 11 Jul 2012 02:02:43 +0000 (11 02:02 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 12 Jul 2012 19:30:55 +0000 (12 12:30 -0700)
test/test_posix_mq.rb

index 8d6b014..82ab868 100644 (file)
@@ -257,7 +257,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
     assert_nil IO.select([rd], nil, nil, 0.1)
     ensure
       trap(:USR1, orig)
-  end
+  end if POSIX_MQ.method_defined?(:to_io)
 
   def test_notify_none
     @mq = POSIX_MQ.new @path, IO::CREAT|IO::RDWR, 0666