Skip to content

Commit fac372e

Browse files
committed
skip -> omit in MRI tests harness
1 parent 2d82f8d commit fac372e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/mri/tests/lib/core_assertions.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def assert_file
5858

5959
def assert_in_out_err(args, test_stdin = "", test_stdout = [], test_stderr = [], message = nil,
6060
success: nil, **opt)
61-
skip 'assert_in_out_err is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
61+
omit 'assert_in_out_err is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
6262

6363
args = Array(args).dup
6464
args.insert((Hash === args[0] ? 1 : 0), '--disable=gems')
@@ -116,7 +116,7 @@ def syntax_check(code, fname, line)
116116

117117
def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, **opt)
118118
# TODO: consider choosing some appropriate limit for RJIT and stop skipping this once it does not randomly fail
119-
skip 'assert_no_memory_leak fails transiently on TruffleRuby and is too slow' if defined?(::TruffleRuby)
119+
omit 'assert_no_memory_leak fails transiently on TruffleRuby and is too slow' if defined?(::TruffleRuby)
120120
pend 'assert_no_memory_leak may consider RJIT memory usage as leak' if defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled?
121121
# For previous versions which implemented MJIT
122122
pend 'assert_no_memory_leak may consider MJIT memory usage as leak' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
@@ -229,7 +229,7 @@ def assert_valid_syntax(code, *args, **opt)
229229
end
230230

231231
def assert_normal_exit(testsrc, message = '', child_env: nil, **opt)
232-
skip 'assert_normal_exit is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
232+
omit 'assert_normal_exit is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
233233

234234
assert_valid_syntax(testsrc, caller_locations(1, 1)[0])
235235
if child_env
@@ -242,7 +242,7 @@ def assert_normal_exit(testsrc, message = '', child_env: nil, **opt)
242242
end
243243

244244
def assert_ruby_status(args, test_stdin="", message=nil, **opt)
245-
skip 'assert_ruby_status is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
245+
omit 'assert_ruby_status is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
246246

247247
out, _, status = EnvUtil.invoke_ruby(args, test_stdin, true, :merge_to_stdout, **opt)
248248
desc = FailDesc[status, message, out]
@@ -267,7 +267,7 @@ def separated_runner(token, out = nil)
267267
end
268268

269269
def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **opt)
270-
skip 'assert_separately is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
270+
omit 'assert_separately is too slow on TruffleRuby' unless ALLOW_SUBPROCESSES
271271

272272
unless file and line
273273
loc, = caller_locations(1,1)

0 commit comments

Comments
 (0)