* 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
This commit is contained in:
parent
2e7ed8032d
commit
42a15516c0
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 26 19:57:54 2014 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* test/ruby/test_gc.rb (test_latest_gc_info): do test separately
|
||||||
|
to avoid mysterious behavior.
|
||||||
|
|
||||||
Wed Nov 26 19:54:31 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Nov 26 19:54:31 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c (constat_reset): do nothing on non-standard
|
* win32/win32.c (constat_reset): do nothing on non-standard
|
||||||
|
@ -123,10 +123,12 @@ class TestGc < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_latest_gc_info
|
def test_latest_gc_info
|
||||||
|
assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom'
|
||||||
GC.start
|
GC.start
|
||||||
count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT]
|
count = GC.stat(:heap_free_slots) + GC.stat(:heap_allocatable_pages) * GC::INTERNAL_CONSTANTS[:HEAP_OBJ_LIMIT]
|
||||||
count.times{ "a" + "b" }
|
count.times{ "a" + "b" }
|
||||||
assert_equal :newobj, GC.latest_gc_info[:gc_by]
|
assert_equal :newobj, GC.latest_gc_info[:gc_by]
|
||||||
|
eom
|
||||||
|
|
||||||
GC.start
|
GC.start
|
||||||
assert_equal :force, GC.latest_gc_info[:major_by] if use_rgengc?
|
assert_equal :force, GC.latest_gc_info[:major_by] if use_rgengc?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user