summaryrefslogtreecommitdiff
path: root/test/ruby/test_file_exhaustive.rb
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-13 00:00:03 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-13 00:00:03 +0000
commit559a82757959f05fb752610af0adf5d03768569f (patch)
tree28a6c648e05f26736aee68076ce51a0822c900f4 /test/ruby/test_file_exhaustive.rb
parent85bbacbba2defb1118fff2a43a6ae7295ccebbba (diff)
add more test coverage for [ruby-core:63136] [Bug #9934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r--test/ruby/test_file_exhaustive.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index aa9bcc9fb7..a64a956afd 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -463,6 +463,8 @@ class TestFileExhaustive < Test::Unit::TestCase
require "objspace"
path = File.expand_path("/foo")
assert_operator(ObjectSpace.memsize_of(path), :<=, path.bytesize, bug9934)
+ path = File.expand_path("/a"*25)
+ assert_equal(51, ObjectSpace.memsize_of(path), bug9934)
end
def test_expand_path_encoding