From 1e7ef5882e18b318f68804aada885eee47045593 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 14 Dec 2012 01:38:12 +0000 Subject: 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 --- test/ruby/test_gc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') 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 -- cgit v1.2.3