aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_gc.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 2e26fde5c1..fa4d779069 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -398,7 +398,7 @@ class TestGc < Test::Unit::TestCase
end
end
- def test_exception_in_finalizer
+ def test_exception_in_finalizer_procs
result = []
c1 = proc do
result << :c1
@@ -417,6 +417,7 @@ class TestGc < Test::Unit::TestCase
}
}
GC.start
+ skip "finalizers did not get run" if result.empty?
assert_equal([:c1, :c2], result)
end
end