aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb4
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