From 1c16a350175616b0ddad32164bd38246fcf1f231 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 Dec 2016 23:20:00 +0000 Subject: test_modify_expand.rb: skip if no overflow * test/-ext-/string/test_modify_expand.rb (test_integer_overflow): no longer happens on platforms where size_t is larger than long, e.g. 64bit windows, since r57122. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/string/test_modify_expand.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/-ext-/string/test_modify_expand.rb') diff --git a/test/-ext-/string/test_modify_expand.rb b/test/-ext-/string/test_modify_expand.rb index c7093e3892..b7f96426fc 100644 --- a/test/-ext-/string/test_modify_expand.rb +++ b/test/-ext-/string/test_modify_expand.rb @@ -16,6 +16,7 @@ class Test_StringModifyExpand < Test::Unit::TestCase end def test_integer_overflow + return if RbConfig::SIZEOF['size_t'] > RbConfig::SIZEOF['long'] bug12390 = '[ruby-core:75592] [Bug #12390]' s = Bug::String.new long_max = (1 << (8 * RbConfig::SIZEOF['long'] - 1)) - 1 -- cgit v1.2.3