Fix relative paths from core_assertions.rb

This commit is contained in:
Nobuyoshi Nakada 2021-08-04 17:38:46 +09:00
Родитель 6e55facdb3
Коммит 5f2987d6c2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7CD2805BFA3770C6
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -117,7 +117,7 @@ module Test
# 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::JIT) && RubyVM::JIT.enabled?
require_relative '../../memory_status'
require_relative 'memory_status'
raise MiniTest::Skip, "unsupported platform" unless defined?(Memory::Status)
token = "\e[7;1m#{$$.to_s}:#{Time.now.strftime('%s.%L')}:#{rand(0x10000).to_s(16)}:\e[m"
@ -126,7 +126,7 @@ module Test
envs = args.shift if Array === args and Hash === args.first
args = [
"--disable=gems",
"-r", File.expand_path("../../../memory_status", __FILE__),
"-r", File.expand_path("../memory_status", __FILE__),
*args,
"-v", "-",
]
@ -478,7 +478,7 @@ eom
ex
end
MINI_DIR = File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), "minitest") #:nodoc:
MINI_DIR = File.join(File.dirname(File.expand_path(__FILE__)), "minitest") #:nodoc:
# :call-seq:
# assert(test, [failure_message])

Просмотреть файл

@ -113,7 +113,7 @@ module TestParallel
result = Marshal.load($1.chomp.unpack("m")[0])
assert_equal(5, result[0])
assert_equal(17, result[1])
assert_equal(12, result[1])
assert_kind_of(Array,result[2])
assert_kind_of(Array,result[3])
assert_kind_of(Array,result[4])