ruby-changes:35735
From: nobu <ko1@a...>
Date: Mon, 6 Oct 2014 16:07:06 +0900 (JST)
Subject: [ruby-changes:35735] nobu:r47817 (trunk): test_string.rb: enable huge test only on possible platforms
nobu 2014-10-06 16:06:49 +0900 (Mon, 06 Oct 2014) New Revision: 47817 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47817 Log: test_string.rb: enable huge test only on possible platforms * test/ruby/test_string.rb (test_LSHIFT_neary_long_max): enable only on platforms where string size range is smaller than memory space. this test does not make sense but just wastes memory and time on other platforms, as it is hardly possible that a string size becomes neary LONG_MAX if long size equals pointer size. [ruby-core:65410] [Bug #10325] Modified files: trunk/ChangeLog trunk/test/ruby/test_string.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47816) +++ ChangeLog (revision 47817) @@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Oct 6 16:07:11 2014 Nobuyoshi Nakada <nobu@r...> + + * test/ruby/test_string.rb (test_LSHIFT_neary_long_max): enable + only on platforms where string size range is smaller than memory + space. this test does not make sense but just wastes memory and + time on other platforms, as it is hardly possible that a string + size becomes neary LONG_MAX if long size equals pointer size. + [ruby-core:65410] [Bug #10325] + Mon Oct 6 11:21:21 2014 Martin Duerst <duerst@i...> * tool/unicode_norm_gen.rb: Adding/tweaking comments. Index: test/ruby/test_string.rb =================================================================== --- test/ruby/test_string.rb (revision 47816) +++ test/ruby/test_string.rb (revision 47817) @@ -2270,7 +2270,8 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2270 rescue NoMemoryError end end; - end + end if [0].pack("l!").bytesize < [nil].pack("p").bytesize + # enable only when string size range is smaller than memory space end class TestString2 < TestString -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/