summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-12-22 20:20:03 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-12-22 20:20:42 -0800
commitc25705c2670ab34a2d4c993436edcf7d77e5cd92 (patch)
tree771a5e3699fab1ac79269e77343ae765e005cd1e /tool/lib
parent9b289d58f78e80362984ffb2920e859beeaec2ce (diff)
Get rid of obsoleted RJITFirst
It was renamed from test_mjit, but we did not maintain it as test_rjit. We test RJIT very differently.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/test/unit.rb16
1 files changed, 4 insertions, 12 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 79b1a916b0..1c2d5fd924 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -53,17 +53,7 @@ module Test
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
@@ -76,8 +66,6 @@ module Test
# 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) }
@@ -95,6 +83,10 @@ module Test
list.sort_by {|e| randomize_key(e)}
end
+ def group(list)
+ list
+ end
+
private
def crc32(str, crc32 = 0xffffffff)