summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-10-11 14:08:59 -0400
committerPeter Zhu <[email protected]>2024-10-11 15:29:10 -0400
commit8aeb60aec88dd68fdfbaa75ca06e65188233ccbf (patch)
tree5d36fa23d24f5a948808f05027f6055402e4b2be /test/ruby
parent6a88e9d43088f51d3d9dde9c89f24836ab715810 (diff)
Rename supports_auto_compact? to supports_compact?
It's testing whether GC compaction is supported in general.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11885
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc_compact.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb
index 15bf574f6b..4c8aa20215 100644
--- a/test/ruby/test_gc_compact.rb
+++ b/test/ruby/test_gc_compact.rb
@@ -8,7 +8,7 @@ end
class TestGCCompact < Test::Unit::TestCase
module CompactionSupportInspector
- def supports_auto_compact?
+ def supports_compact?
GC.respond_to?(:compact)
end
end
@@ -17,7 +17,7 @@ class TestGCCompact < Test::Unit::TestCase
include CompactionSupportInspector
def setup
- omit "autocompact not supported on this platform" unless supports_auto_compact?
+ omit "GC compaction not supported on this platform" unless supports_compact?
super
end
end
@@ -83,7 +83,7 @@ class TestGCCompact < Test::Unit::TestCase
include CompactionSupportInspector
def assert_not_implemented(method, *args)
- omit "autocompact is supported on this platform" if supports_auto_compact?
+ omit "autocompact is supported on this platform" if supports_compact?
assert_raise(NotImplementedError) { GC.send(method, *args) }
refute(GC.respond_to?(method), "GC.#{method} should be defined as rb_f_notimplement")