Skip to content

Commit

Permalink
Merge pull request #2685 from bjfish/disable-memory-leak-spec-for-tru…
Browse files Browse the repository at this point in the history
…ffleruby

Disable memory leak spec for TruffleRuby
  • Loading branch information
JonRowe committed Jan 9, 2020
2 parents 0d27b29 + 4a6ce28 commit 7c2531e
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 7c2531e

Please sign in to comment.