diff options
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 2 |
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 |