From 0bb07e5ba40cdc45d55743dd1ebaadd7e7363e7f Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 30 Dec 2022 10:31:50 -0500 Subject: Fix test when Ruby is verbose The test added in 90a80eb0 fails if Ruby is verbose, it outputs the following line to stderr: RUBY_GC_HEAP_INIT_SLOTS=100 (default value: 10000) --- test/ruby/test_gc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 5df3bba5f9..4251321119 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -307,7 +307,7 @@ class TestGc < Test::Unit::TestCase env = { "RUBY_GC_HEAP_INIT_SLOTS" => "100" } - assert_in_out_err([env, "-e", "exit"], "", [], [], "[Bug #19284]") + assert_in_out_err([env, "-W0", "-e", "exit"], "", [], [], "[Bug #19284]") env = { "RUBY_GC_MALLOC_LIMIT" => "60000000", -- cgit v1.2.1