From 3e130812146aadaf36e0b6a027e7f79d9e96b055 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 11 Apr 2012 01:15:56 +0000 Subject: 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 --- test/ruby/test_pack.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_pack.rb') 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 -- cgit v1.2.3