about summary refs log tree commit homepage
path: root/test/test_posix_mq.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_posix_mq.rb')
-rw-r--r--test/test_posix_mq.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb
index af8e6ba..ec9ba03 100644
--- a/test/test_posix_mq.rb
+++ b/test/test_posix_mq.rb
@@ -1,6 +1,5 @@
 # -*- encoding: binary -*-
 require 'test/unit'
-require 'posix_mq'
 require 'thread'
 require 'fcntl'
 $stderr.sync = $stdout.sync = true
@@ -9,6 +8,8 @@ begin
   require "dl/func"
 rescue LoadError
 end
+$-w = true
+require 'posix_mq'
 
 class Test_POSIX_MQ < Test::Unit::TestCase
 
@@ -402,7 +403,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
   end if POSIX_MQ.method_defined?(:notify)
 
   def test_bad_open_mode
-    assert_raises(ArgumentError) { mq = POSIX_MQ.new(@path, "rw") }
+    assert_raises(ArgumentError) { POSIX_MQ.new(@path, "rw") }
   end
 
   def test_bad_open_attr