summaryrefslogtreecommitdiff
path: root/spec/ruby/core/gc/auto_compact_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/gc/auto_compact_spec.rb')
-rw-r--r--spec/ruby/core/gc/auto_compact_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/core/gc/auto_compact_spec.rb b/spec/ruby/core/gc/auto_compact_spec.rb
index 386725996d..4f9d043171 100644
--- a/spec/ruby/core/gc/auto_compact_spec.rb
+++ b/spec/ruby/core/gc/auto_compact_spec.rb
@@ -12,6 +12,11 @@ ruby_version_is "3.0" do
original = GC.auto_compact
begin
GC.auto_compact = !original
+ rescue NotImplementedError # platform does not support autocompact
+ skip
+ end
+
+ begin
GC.auto_compact.should == !original
ensure
GC.auto_compact = original