summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_weakmap.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_weakmap.rb b/test/ruby/test_weakmap.rb
index a30004bce3..0371afa77a 100644
--- a/test/ruby/test_weakmap.rb
+++ b/test/ruby/test_weakmap.rb
@@ -237,6 +237,10 @@ class TestWeakMap < Test::Unit::TestCase
end;
end
+ def test_gc_compact_stress
+ EnvUtil.under_gc_compact_stress { ObjectSpace::WeakMap.new }
+ end
+
def test_replaced_values_bug_19531
a = "A".dup
b = "B".dup