Skip to content

Commit

Permalink
Get rid of obsoleted RJITFirst
Browse files Browse the repository at this point in the history
It was renamed from test_mjit, but we did not maintain it as test_rjit.
We test RJIT very differently.
  • Loading branch information
k0kubun committed Dec 23, 2023
1 parent 9b289d5 commit c25705c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tool/lib/test/unit.rb
Expand Up @@ -53,17 +53,7 @@ def group(list)
end
end

module RJITFirst
def group(list)
# RJIT first
rjit, others = list.partition {|e| /test_rjit/ =~ e}
rjit + others
end
end

class Alpha < NoSort
include RJITFirst

def sort_by_name(list)
list.sort_by(&:name)
end
Expand All @@ -76,8 +66,6 @@ def sort_by_string(list)

# shuffle test suites based on CRC32 of their names
Shuffle = Struct.new(:seed, :salt) do
include RJITFirst

def initialize(seed)
self.class::CRC_TBL ||= (0..255).map {|i|
(0..7).inject(i) {|c,| (c & 1 == 1) ? (0xEDB88320 ^ (c >> 1)) : (c >> 1) }
Expand All @@ -95,6 +83,10 @@ def sort_by_string(list)
list.sort_by {|e| randomize_key(e)}
end

def group(list)
list
end

private

def crc32(str, crc32 = 0xffffffff)
Expand Down

0 comments on commit c25705c

Please sign in to comment.