From 2e875549a934fa04b7939810fa0d8a2762702aaa Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 6 Mar 2023 23:15:30 -0800 Subject: s/MJIT/RJIT/ --- tool/lib/core_assertions.rb | 4 ++-- tool/lib/test/unit.rb | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tool/lib') diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index fdae050bb5..c646281549 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -111,8 +111,8 @@ module Test end def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, **opt) - # TODO: consider choosing some appropriate limit for MJIT and stop skipping this once it does not randomly fail - pend 'assert_no_memory_leak may consider MJIT memory usage as leak' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? + # TODO: consider choosing some appropriate limit for RJIT and stop skipping this once it does not randomly fail + pend 'assert_no_memory_leak may consider RJIT memory usage as leak' if defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? require_relative 'memory_status' raise Test::Unit::PendedError, "unsupported platform" unless defined?(Memory::Status) diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 0fa7b4c5cd..fe5c17887c 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -89,16 +89,16 @@ module Test end end - module MJITFirst + module RJITFirst def group(list) - # MJIT first + # RJIT first mjit, others = list.partition {|e| /test_mjit/ =~ e} mjit + others end end class Alpha < NoSort - include MJITFirst + include RJITFirst def sort_by_name(list) list.sort_by(&:name) @@ -112,7 +112,7 @@ module Test # shuffle test suites based on CRC32 of their names Shuffle = Struct.new(:seed, :salt) do - include MJITFirst + include RJITFirst def initialize(seed) self.class::CRC_TBL ||= (0..255).map {|i| @@ -1589,7 +1589,7 @@ module Test puts if @verbose $stdout.flush - unless defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # compiler process is wrongly considered as leak + unless defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled? # compiler process is wrongly considered as leak leakchecker.check("#{inst.class}\##{inst.__name__}") end -- cgit v1.2.1