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:
parent
1d1b9e02d2
commit
c3c1800708
1 changed files with 2 additions and 2 deletions
|
@ -798,7 +798,7 @@ class TestStringIO < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_overflow
|
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
|
limit = RbConfig::LIMITS["INTPTR_MAX"] - 0x10
|
||||||
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
|
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
|
||||||
begin;
|
begin;
|
||||||
|
@ -808,7 +808,7 @@ class TestStringIO < Test::Unit::TestCase
|
||||||
x = "a"*0x100000
|
x = "a"*0x100000
|
||||||
break if [x].pack("p").unpack("i!")[0] < 0
|
break if [x].pack("p").unpack("i!")[0] < 0
|
||||||
ary << x
|
ary << x
|
||||||
skip if ary.size > 100
|
omit if ary.size > 100
|
||||||
end
|
end
|
||||||
s = StringIO.new(x)
|
s = StringIO.new(x)
|
||||||
s.gets("xxx", limit)
|
s.gets("xxx", limit)
|
||||||
|
|
Loading…
Add table
Reference in a new issue