From e3d10dedf106357d2b17fc8786d35035e0b366cf Mon Sep 17 00:00:00 2001 From: nagachika Date: Sun, 25 Jun 2023 12:29:49 +0900 Subject: merge revision(s) bffadcd6d46ccfccade79ce0efb60ced8eac4483: [Backport #19529] Add guard to compaction test in WeakMap Some platforms don't support compaction, so we should skip this test. --- test/ruby/test_weakmap.rb | 2 ++ 1 file changed, 2 insertions(+) --- test/ruby/test_weakmap.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_weakmap.rb b/test/ruby/test_weakmap.rb index 9bbe2d6b81..6455034743 100644 --- a/test/ruby/test_weakmap.rb +++ b/test/ruby/test_weakmap.rb @@ -178,6 +178,8 @@ class TestWeakMap < Test::Unit::TestCase end def test_compaction_bug_19529 + omit "compaction is not supported on this platform" unless GC.respond_to?(:compact) + obj = Object.new 100.times do |i| GC.compact -- cgit v1.2.3