diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-14 01:38:12 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-14 01:38:12 +0000 |
commit | 1e7ef5882e18b318f68804aada885eee47045593 (patch) | |
tree | c19c75e884324aed7c7607691798c59329ecc0af /test/ruby/test_gc.rb | |
parent | bc2195e4fbf7281af3a0bd055d4263690d7aad9f (diff) |
Use assert_separately to speed up slow tests
These speed will slow down when there are many objects like test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 11d2b4c596..793ef3918e 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -120,6 +120,7 @@ class TestGc < Test::Unit::TestCase end def test_profiler_clear + assert_separately %w[--disable-gem], __FILE__, __LINE__, <<-'eom' GC::Profiler.enable GC.start @@ -131,8 +132,7 @@ class TestGc < Test::Unit::TestCase assert_equal(200, GC::Profiler.raw_data.size) GC::Profiler.clear assert_equal(0, GC::Profiler.raw_data.size) - ensure - GC::Profiler.disable + eom end def test_finalizing_main_thread |