summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-06-04 00:21:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-26 15:11:23 +0900
commitccc8610b660ef225b304aae7b820bad036621a87 (patch)
tree0543fcaca5e49e970fd2b456737e0699d1fde95a /test
parent4c07e61bc937b39774862e33bbac8c9c234f3dbf (diff)
Remove `RUBY_GC_HEAP_INIT_SLOTS` environment variable
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_gc.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 594e2b8aa8..09199c34b1 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -453,13 +453,6 @@ class TestGc < Test::Unit::TestCase
end
def test_gc_parameter
- env = {
- "RUBY_GC_HEAP_INIT_SLOTS" => "100"
- }
- assert_in_out_err([env, "-W0", "-e", "exit"], "", [], [])
- assert_in_out_err([env, "-W:deprecated", "-e", "exit"], "", [],
- /The environment variable RUBY_GC_HEAP_INIT_SLOTS is deprecated; use environment variables RUBY_GC_HEAP_%d_INIT_SLOTS instead/)
-
env = {}
GC.stat_heap.keys.each do |heap|
env["RUBY_GC_HEAP_#{heap}_INIT_SLOTS"] = "200000"