ruby-changes:47892
From: nobu <ko1@a...>
Date: Sun, 24 Sep 2017 18:44:31 +0900 (JST)
Subject: [ruby-changes:47892] nobu:r60011 (trunk): test_gc.rb: relax criterion
nobu 2017-09-24 18:44:26 +0900 (Sun, 24 Sep 2017) New Revision: 60011 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60011 Log: test_gc.rb: relax criterion * test/ruby/test_gc.rb (TestGc#test_expand_heap): relax the criterion and compare by epsilon. Modified files: trunk/test/ruby/test_gc.rb Index: test/ruby/test_gc.rb =================================================================== --- test/ruby/test_gc.rb (revision 60010) +++ test/ruby/test_gc.rb (revision 60011) @@ -290,7 +290,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L290 base_length = GC.stat[:heap_eden_pages] (base_length * 500).times{ 'a' } GC.start - assert_in_delta base_length, (v = GC.stat[:heap_eden_pages]), 2, + assert_in_epsilon base_length, (v = GC.stat[:heap_eden_pages]), 1/8r, "invalid heap expanding (base_length: #{base_length}, GC.stat[:heap_eden_pages]: #{v})" a = [] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/