* test/ruby/test_gc.rb (test_gc_reason): Force minor GC by consuming
free slots to fix test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f5d3c5e53
commit
b05721765e
@ -1,3 +1,8 @@
|
||||
Sun Dec 1 06:00:49 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* test/ruby/test_gc.rb (test_gc_reason): Force minor GC by consuming
|
||||
free slots to fix test.
|
||||
|
||||
Sat Nov 30 21:22:11 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (dir_initialize): check unknown keywords. [ruby-dev:47152]
|
||||
|
@ -80,7 +80,8 @@ class TestGc < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_gc_reason
|
||||
100_000.times{ "a" + "b" }
|
||||
GC.start
|
||||
GC.stat[:heap_free_slot].times{ "a" + "b" }
|
||||
assert_equal({:gc_by => :newobj},
|
||||
GC::Profiler.decode_flags(GC.stat[:last_collection_flags]))
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user