diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_gc_compact.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index 26d7c71687..15bf574f6b 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -9,7 +9,7 @@ end class TestGCCompact < Test::Unit::TestCase module CompactionSupportInspector def supports_auto_compact? - GC::OPTS.include?("GC_COMPACTION_SUPPORTED") + GC.respond_to?(:compact) end end |