* test/ruby/test_gc.rb (test_expand_heap): relax condition (1->2).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2015-12-10 06:00:57 +00:00
parent 88c78ef17c
commit 10f7ad6264
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Dec 10 14:59:59 2015 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_gc.rb (test_expand_heap): relax condition (1->2).
Thu Dec 10 14:15:59 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* cont.c: fix a double word typo.

View File

@ -289,7 +289,7 @@ class TestGc < Test::Unit::TestCase
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]), 1,
assert_in_delta base_length, (v = GC.stat[:heap_eden_pages]), 2,
"invalid heap expanding (base_length: #{base_length}, GC.stat[:heap_eden_pages]: #{v})"
a = []