mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added guard condition for old ruby about RubyVM::MJIT.
Test libraries under the test/lib is used with default gems in their repositories. default gems may support old ruby like Ruby 2.5. When default gems invoke test libraries of Ruby core with old ruby, they raised `uninitialized constant RubyVM::MJIT (NameError)` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f6b3ef184
commit
114fec048f
1 changed files with 1 additions and 1 deletions
|
@ -956,7 +956,7 @@ module MiniTest
|
|||
puts if @verbose
|
||||
$stdout.flush
|
||||
|
||||
unless RubyVM::MJIT.enabled? # compiler process is wrongly considered as leaked
|
||||
unless defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # compiler process is wrongly considered as leaked
|
||||
leakchecker.check("#{inst.class}\##{inst.__name__}")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue