mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refine test of r55432
* test/stringio/test_stringio.rb (test_overflow): could occur only on sizeof(long) >= sizeof(void*). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
815e8e992d
commit
513345607d
1 changed files with 2 additions and 1 deletions
|
@ -682,7 +682,8 @@ class TestStringIO < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_overflow
|
||||
limit = (1 << (RbConfig::SIZEOF["size_t"]*8-1)) - 0x10
|
||||
skip if RbConfig::SIZEOF["void*"] > RbConfig::SIZEOF["long"]
|
||||
limit = (1 << (RbConfig::SIZEOF["void*"]*8-1)) - 0x10
|
||||
assert_separately(%w[-rstringio], "#{<<-"begin;"}\n#{<<-"end;"}")
|
||||
begin;
|
||||
limit = #{limit}
|
||||
|
|
Loading…
Reference in a new issue