Used respond_to? check for compaction in test_gc_compact.rb
This commit is contained in:
parent
95abf679c5
commit
6a88e9d430
Notes:
git
2024-10-11 19:29:29 +00:00
@ -9,7 +9,7 @@ end
|
|||||||
class TestGCCompact < Test::Unit::TestCase
|
class TestGCCompact < Test::Unit::TestCase
|
||||||
module CompactionSupportInspector
|
module CompactionSupportInspector
|
||||||
def supports_auto_compact?
|
def supports_auto_compact?
|
||||||
GC::OPTS.include?("GC_COMPACTION_SUPPORTED")
|
GC.respond_to?(:compact)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user