Fix relative paths from core_assertions.rb
This commit is contained in:
parent
6e55facdb3
commit
5f2987d6c2
@ -117,7 +117,7 @@ module Test
|
|||||||
# TODO: consider choosing some appropriate limit for MJIT and stop skipping this once it does not randomly fail
|
# 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?
|
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)
|
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"
|
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
|
envs = args.shift if Array === args and Hash === args.first
|
||||||
args = [
|
args = [
|
||||||
"--disable=gems",
|
"--disable=gems",
|
||||||
"-r", File.expand_path("../../../memory_status", __FILE__),
|
"-r", File.expand_path("../memory_status", __FILE__),
|
||||||
*args,
|
*args,
|
||||||
"-v", "-",
|
"-v", "-",
|
||||||
]
|
]
|
||||||
@ -478,7 +478,7 @@ eom
|
|||||||
ex
|
ex
|
||||||
end
|
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:
|
# :call-seq:
|
||||||
# assert(test, [failure_message])
|
# assert(test, [failure_message])
|
||||||
|
@ -113,7 +113,7 @@ module TestParallel
|
|||||||
|
|
||||||
result = Marshal.load($1.chomp.unpack("m")[0])
|
result = Marshal.load($1.chomp.unpack("m")[0])
|
||||||
assert_equal(5, result[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[2])
|
||||||
assert_kind_of(Array,result[3])
|
assert_kind_of(Array,result[3])
|
||||||
assert_kind_of(Array,result[4])
|
assert_kind_of(Array,result[4])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user