summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-23 03:14:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-23 03:14:05 +0000
commit9b2d518a6f74abaa73734ecf8bce80ab422867d6 (patch)
treeab785dc3cb2ec2c8bd3e643bf94628965f8ec3e8 /test/ruby/test_gc.rb
parent0f711026e2da7ebcd8933c987d8b0a835f1ae153 (diff)
skip unless finalizers run
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-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