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

Prefer to use omit

This commit is contained in:
Hiroshi SHIBATA 2021-02-17 12:20:11 +09:00
parent 1d1b9e02d2
commit c3c1800708
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -798,7 +798,7 @@ class TestStringIO < Test::Unit::TestCase
end
def test_overflow
skip if RbConfig::SIZEOF["void*"] > RbConfig::SIZEOF["long"]
omit if RbConfig::SIZEOF["void*"] > RbConfig::SIZEOF["long"]
limit = RbConfig::LIMITS["INTPTR_MAX"] - 0x10
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
begin;
@ -808,7 +808,7 @@ class TestStringIO < Test::Unit::TestCase
x = "a"*0x100000
break if [x].pack("p").unpack("i!")[0] < 0
ary << x
skip if ary.size > 100
omit if ary.size > 100
end
s = StringIO.new(x)
s.gets("xxx", limit)