ruby-changes:61634
From: Koichi <ko1@a...>
Date: Tue, 9 Jun 2020 15:53:30 +0900 (JST)
Subject: [ruby-changes:61634] 195075e8f5 (master): disable GC on a test
https://git.ruby-lang.org/ruby.git/commit/?id=195075e8f5 From 195075e8f5f2220a0a1f00f5cfd2ad98681e71d5 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 9 Jun 2020 15:52:25 +0900 Subject: disable GC on a test CI fails with GC while `foo{}`, so that disable GC for this script. diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 7f2db19..b38c52e 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -701,11 +701,11 @@ class TestRubyOptimization < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L701 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/