summaryrefslogtreecommitdiff
path: root/tool/lib/test/unit.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-07 11:46:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-11 08:48:03 +0900
commit3e32412e08d2ec77cb84d535b591445cdaa4656a (patch)
tree637e70b33d9b3f121dfc3f83f9bbc0c7ee356300 /tool/lib/test/unit.rb
parent871e7b5f55f079e04fdc3f6f42eaa139e3a3345a (diff)
Fixed broken runner for `make test-all`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4813
Diffstat (limited to 'tool/lib/test/unit.rb')
-rw-r--r--tool/lib/test/unit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb
index 79abe86f24..27751d0005 100644
--- a/tool/lib/test/unit.rb
+++ b/tool/lib/test/unit.rb
@@ -71,7 +71,7 @@ module Test
srand(seed)
orig_args.unshift "--seed=#{seed}"
end
- MiniTest::Unit::TestCase.test_order = order if order
+ Test::Unit::TestCase.test_order = order if order
@help = "\n" + orig_args.map { |s|
" " + (s =~ /[\s|&<>$()]/ ? s.inspect : s)
@@ -517,7 +517,7 @@ module Test
require 'timeout'
@tasks = @files.dup # Array of filenames.
- case MiniTest::Unit::TestCase.test_order
+ case Test::Unit::TestCase.test_order
when :random
@tasks.shuffle!
else
@@ -1008,7 +1008,7 @@ module Test
def non_options(files, options)
if options.delete(:gc_stress)
- MiniTest::Unit::TestCase.class_eval do
+ Test::Unit::TestCase.class_eval do
oldrun = instance_method(:run)
define_method(:run) do |runner|
begin
@@ -1021,7 +1021,7 @@ module Test
end
end
if options.delete(:gc_compact)
- MiniTest::Unit::TestCase.class_eval do
+ Test::Unit::TestCase.class_eval do
oldrun = instance_method(:run)
define_method(:run) do |runner|
begin