зеркало из https://github.com/github/ruby.git
Add guard to compaction test in WeakMap
Some platforms don't support compaction, so we should skip this test.
This commit is contained in:
Родитель
bccec7fb46
Коммит
bffadcd6d4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче