mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
986a893d7a
commit
559154310f
2 changed files with 11 additions and 1 deletions
|
@ -2270,7 +2270,8 @@ class TestString < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue