diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-12-30 10:31:50 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-12-30 10:31:50 -0500 |
commit | 0bb07e5ba40cdc45d55743dd1ebaadd7e7363e7f (patch) | |
tree | 1b6bca35a0bdde9ce10e7ac9183a8466c024f686 | |
parent | 90a80eb076429978e720e11fb17a3cbb96de3454 (diff) | |
download | ruby-0bb07e5ba40cdc45d55743dd1ebaadd7e7363e7f.tar.gz |
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)
-rw-r--r-- | test/ruby/test_gc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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", |