diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 01:15:56 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 01:15:56 +0000 |
commit | 3e130812146aadaf36e0b6a027e7f79d9e96b055 (patch) | |
tree | c10b786879b1c489770a14fb83128b1cf752fb37 /test/ruby/test_pack.rb | |
parent | bab146b689043962de105882a4716c34114e2805 (diff) | |
download | ruby-3e130812146aadaf36e0b6a027e7f79d9e96b055.tar.gz |
Set $VERBOSE=false in case of ruby -w.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r-- | test/ruby/test_pack.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index e623a69cbf..5ea21d7827 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -653,11 +653,13 @@ class TestPack < Test::Unit::TestCase end def test_pack_garbage + verbose = $VERBOSE + $VERBOSE = false + assert_silent do assert_equal "\000", [0].pack("*U") end - verbose = $VERBOSE $VERBOSE = true _, err = capture_io do @@ -670,11 +672,13 @@ class TestPack < Test::Unit::TestCase end def test_unpack_garbage + verbose = $VERBOSE + $VERBOSE = false + assert_silent do assert_equal [0], "\000".unpack("*U") end - verbose = $VERBOSE $VERBOSE = true _, err = capture_io do |