summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-12-30 10:31:50 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-12-30 10:31:50 -0500
commit0bb07e5ba40cdc45d55743dd1ebaadd7e7363e7f (patch)
tree1b6bca35a0bdde9ce10e7ac9183a8466c024f686 /test/ruby
parent90a80eb076429978e720e11fb17a3cbb96de3454 (diff)
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)
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb2
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",