[前][次][番号順一覧][スレッド一覧]

ruby-changes:45083

From: nobu <ko1@a...>
Date: Fri, 23 Dec 2016 08:20:05 +0900 (JST)
Subject: [ruby-changes:45083] nobu:r57156 (trunk): test_modify_expand.rb: skip if no overflow

nobu	2016-12-23 08:20:00 +0900 (Fri, 23 Dec 2016)

  New Revision: 57156

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57156

  Log:
    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.

  Modified files:
    trunk/test/-ext-/string/test_modify_expand.rb
Index: test/-ext-/string/test_modify_expand.rb
===================================================================
--- test/-ext-/string/test_modify_expand.rb	(revision 57155)
+++ test/-ext-/string/test_modify_expand.rb	(revision 57156)
@@ -16,6 +16,7 @@ class Test_StringModifyExpand < Test::Un https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_modify_expand.rb#L16
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]