From eb4dc17956d730f41a149f63469284ff5187c52b Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 17 Oct 2015 05:01:41 +0000 Subject: test_const.rb: suppress warnings * test/ruby/test_const.rb (test_redefinition_memory_leak): suppress warnings instead of redirecting to null device. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_const.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test') diff --git a/test/ruby/test_const.rb b/test/ruby/test_const.rb index 892d775319..8d50464988 100644 --- a/test/ruby/test_const.rb +++ b/test/ruby/test_const.rb @@ -62,11 +62,8 @@ WARNING def test_redefinition_memory_leak code = <<-PRE -olderr = $stderr.dup -$stderr.reopen(File::NULL, "wb") 350000.times { FOO = :BAR } -$stderr.reopen(olderr) PRE - assert_no_memory_leak([], '', code, 'redefined constant', timeout: 30) + assert_no_memory_leak(%w[-W0 -], '', code, 'redefined constant', timeout: 30) end end -- cgit v1.2.3