From d28464c4ae968a180e80e3f9261bcfec08ae7702 Mon Sep 17 00:00:00 2001 From: nagachika Date: Tue, 21 Mar 2023 13:59:41 +0900 Subject: merge revision(s) 0bb07e5ba40cdc45d55743dd1ebaadd7e7363e7f: [Backport #19284] 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(-) --- test/ruby/test_gc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index c28f450ef1..fa81bcb1ad 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -216,7 +216,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.3