1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use omit instead of skip: test/-ext-/**/*.rb

This commit is contained in:
Hiroshi SHIBATA 2021-12-28 21:13:39 +09:00
parent 55cdb8b013
commit 763592d208
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
4 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@ require 'tmpdir'
class TestBugReporter < Test::Unit::TestCase
def test_bug_reporter_add
skip if ENV['RUBY_ON_BUG']
omit if ENV['RUBY_ON_BUG']
description = RUBY_DESCRIPTION
description = description.sub(/\+MJIT /, '') if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?

View file

@ -52,7 +52,7 @@ class TestFloatExt < Test::Unit::TestCase
"#{'%a' % v2} = Bug::Float.system_nextafter(#{'%a' % n1}, #{'%a' % n2})")
rescue Test::Unit::AssertionFailedError
if /aix/ =~ RUBY_PLATFORM
skip "Known bug in nextafter(3) on AIX"
omit "Known bug in nextafter(3) on AIX"
end
raise $!
end

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class TestUbfAsyncSafe < Test::Unit::TestCase
def test_ubf_async_safe
skip 'need fork for single-threaded test' unless Process.respond_to?(:fork)
omit 'need fork for single-threaded test' unless Process.respond_to?(:fork)
IO.pipe do |r, w|
pid = fork do
require '-test-/gvl/call_without_gvl'

View file

@ -98,7 +98,7 @@ class TestIseqLoad < Test::Unit::TestCase
iseq = ISeq.iseq_load(a)
iseq.eval
assert_equal false, @next_broke
skip "failing due to stack_max mismatch"
omit "failing due to stack_max mismatch"
assert_iseq_roundtrip(src)
end
@ -121,7 +121,7 @@ class TestIseqLoad < Test::Unit::TestCase
iseq = ISeq.iseq_load(a)
iseq.eval
assert_equal false, test_break_ensure_def_method
skip "failing due to exception entry sp mismatch"
omit "failing due to exception entry sp mismatch"
assert_iseq_roundtrip(src)
end
@ -137,7 +137,7 @@ class TestIseqLoad < Test::Unit::TestCase
# FIXME: still failing
def test_require_integration
skip "iseq loader require integration tests still failing"
omit "iseq loader require integration tests still failing"
f = File.expand_path(__FILE__)
# $(top_srcdir)/test/ruby/test_....rb
3.times { f = File.dirname(f) }