diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-02-17 12:20:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-03-08 09:34:16 +0900 |
commit | c3c18007086df2b126f25483d82d72adafb2da7e (patch) | |
tree | a26785c2e0db792e563060aafff7ccf6213a0c48 /test/stringio/test_stringio.rb | |
parent | 1d1b9e02d26f5f9834b7967e46e853aaf1ffc815 (diff) | |
download | ruby-c3c18007086df2b126f25483d82d72adafb2da7e.tar.gz |
Prefer to use omit
Diffstat (limited to 'test/stringio/test_stringio.rb')
-rw-r--r-- | test/stringio/test_stringio.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index a49326119f..036e374b98 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -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) |