summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-12-30 10:31:50 -0500
committerNARUSE, Yui <naruse@airemix.jp>2023-01-19 15:50:58 +0900
commit98abe4a0be09e0571104f4ca1b5655e353910aa0 (patch)
treec76fdf5a3c631244ad06efc0e7b4ee13fc573dd6 /test
parent686b38f83e70b3e1796092c71dd0b7dc2206b118 (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')
-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",