From 195075e8f5f2220a0a1f00f5cfd2ad98681e71d5 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 9 Jun 2020 15:52:25 +0900 Subject: [PATCH] disable GC on a test CI fails with GC while `foo{}`, so that disable GC for this script. --- test/ruby/test_optimization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 7f2db199ad..b38c52ef2e 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -701,11 +701,11 @@ class TestRubyOptimization < Test::Unit::TestCase def test_block_parameter_should_not_create_objects assert_separately [], <<-END - # def foo &b end h1 = {}; h2 = {} ObjectSpace.count_objects(h1) # rehearsal + GC.start; GC.disable # to disable GC while foo{} ObjectSpace.count_objects(h1) foo{} ObjectSpace.count_objects(h2)