diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-27 11:40:40 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-27 11:41:47 +0000 |
commit | 89c26cdaf25463c891a8ce915fefa1a181b3ac64 (patch) | |
tree | 1035f989f4a4f3171262a3ae8e438b25a51e3576 /test/test_posix_mq.rb | |
parent | 5af56c9047dae680bde185c8a2b82de03b63e032 (diff) | |
download | ruby_posix_mq-89c26cdaf25463c891a8ce915fefa1a181b3ac64.tar.gz |
Cleaner code anyways.
Diffstat (limited to 'test/test_posix_mq.rb')
-rw-r--r-- | test/test_posix_mq.rb | 5 |
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 |