diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-01-11 21:17:53 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-01-11 21:17:59 +0900 |
commit | f95039af7584a2fa27e4d1cbcdf28bbf5b5ecdcf (patch) | |
tree | 7e33786ef34003463a1abadec4ee99a8185ed04f /test/fiber/test_io.rb | |
parent | 6d3ee418c2e12adaf292ad74b7d46a7708e91889 (diff) | |
download | ruby-f95039af7584a2fa27e4d1cbcdf28bbf5b5ecdcf.tar.gz |
Use omit instead of skip without the default gems tests
Diffstat (limited to 'test/fiber/test_io.rb')
-rw-r--r-- | test/fiber/test_io.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/fiber/test_io.rb b/test/fiber/test_io.rb index 06a3c0dd11..4252641cde 100644 --- a/test/fiber/test_io.rb +++ b/test/fiber/test_io.rb @@ -6,14 +6,14 @@ class TestFiberIO < Test::Unit::TestCase MESSAGE = "Hello World" def test_read - skip "UNIXSocket is not defined!" unless defined?(UNIXSocket) + omit "UNIXSocket is not defined!" unless defined?(UNIXSocket) i, o = UNIXSocket.pair unless i.nonblock? && o.nonblock? i.close o.close - skip "I/O is not non-blocking!" + omit "I/O is not non-blocking!" end message = nil @@ -41,7 +41,7 @@ class TestFiberIO < Test::Unit::TestCase end def test_heavy_read - skip unless defined?(UNIXSocket) + omit unless defined?(UNIXSocket) 16.times.map do Thread.new do @@ -64,14 +64,14 @@ class TestFiberIO < Test::Unit::TestCase end def test_epipe_on_read - skip "UNIXSocket is not defined!" unless defined?(UNIXSocket) + omit "UNIXSocket is not defined!" unless defined?(UNIXSocket) i, o = UNIXSocket.pair unless i.nonblock? && o.nonblock? i.close o.close - skip "I/O is not non-blocking!" + omit "I/O is not non-blocking!" end error = nil @@ -142,7 +142,7 @@ class TestFiberIO < Test::Unit::TestCase end def test_read_write_blocking - skip "UNIXSocket is not defined!" unless defined?(UNIXSocket) + omit "UNIXSocket is not defined!" unless defined?(UNIXSocket) i, o = UNIXSocket.pair i.nonblock = false |