diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-26 11:00:19 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-26 11:00:19 +0000 |
commit | 42a15516c05609dd2fc5a8c5863e453444c24761 (patch) | |
tree | 3b9facfc27b69067b7a7eb2641bb0f527d945008 /test/ruby | |
parent | 2e7ed8032d6f24cdc23ec48a00e3c34adbe86493 (diff) | |
download | ruby-42a15516c05609dd2fc5a8c5863e453444c24761.tar.gz |
* test/ruby/test_gc.rb (test_latest_gc_info): do test separately
to avoid mysterious behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_gc.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 9baf429279..ca57b69518 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -123,10 +123,12 @@ class TestGc < Test::Unit::TestCase end def test_latest_gc_info + assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom' GC.start count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT] count.times{ "a" + "b" } assert_equal :newobj, GC.latest_gc_info[:gc_by] + eom GC.start assert_equal :force, GC.latest_gc_info[:major_by] if use_rgengc? |