summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-24 12:52:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-04-24 13:02:01 +0900
commitf1a52d96a59c63d46cb23af60cdcaf38e30e0512 (patch)
treecb0492f778489449a04534df6fac82823cb25b5b /test/ruby/test_gc.rb
parent2ef66737081ec029f9c82e11671de36bb70a9e3b (diff)
Defer setting gc_stress until inits done
[Bug #15784]
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 8f77f49c9b..5dea1b2742 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -384,6 +384,10 @@ class TestGc < Test::Unit::TestCase
end;
end
+ def test_gc_stress_at_startup
+ assert_in_out_err([{"RUBY_DEBUG"=>"gc_stress"}], '', [], [], '[Bug #15784]', success: true)
+ end
+
def test_gc_disabled_start
begin
disabled = GC.disable