Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Disable memory leak spec for TruffleRuby #2685

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/rspec/core/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ def assert(val)

context 'memory leaks, see GH-321, GH-1921' do
def self.reliable_gc
0 != GC.method(:start).arity # older Rubies don't give us options to ensure a full GC
# older Rubies don't give us options to ensure a full GC
# TruffleRuby GC.start arity matches but GC.disable and GC.enable are mock implementations
0 != GC.method(:start).arity && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "truffleruby")
end

def expect_gc(opts)
Expand Down