From c3c18007086df2b126f25483d82d72adafb2da7e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 17 Feb 2021 12:20:11 +0900 Subject: [PATCH] Prefer to use omit --- test/stringio/test_stringio.rb | 4 ++-- 1 file 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)