diff options
author | Peter Zhu <[email protected]> | 2024-10-11 14:01:08 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-10-11 15:29:10 -0400 |
commit | 6a88e9d43088f51d3d9dde9c89f24836ab715810 (patch) | |
tree | 0b5f02e3827caaecc746c0827c2d177ad0180fac /test | |
parent | 95abf679c546da0e9abf36bc9bdfc60a826b1811 (diff) |
Used respond_to? check for compaction in test_gc_compact.rb
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11885
Diffstat (limited to 'test')
-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 |