aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file_exhaustive.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-15 11:49:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-15 11:49:25 +0000
commitf3db73f107d035d76d455829cb9968999a8ef32d (patch)
treeffc9b32603dadf7b0f374bedbdc8414250477d54 /test/ruby/test_file_exhaustive.rb
parent106f3e9d17d89fe15e9b374f5ec80aa539d4c9d9 (diff)
downloadruby-f3db73f107d035d76d455829cb9968999a8ef32d.tar.gz
test_file_exhaustive.rb: fix expected value
* test/ruby/test_file_exhaustive.rb (test_expand_path_memsize): correct expected value, count terminator byte. [Bug #9934] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46437 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, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 4cdb82ed9f..bd69addef6 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -464,7 +464,7 @@ class TestFileExhaustive < Test::Unit::TestCase
path = File.expand_path("/foo")
assert_operator(ObjectSpace.memsize_of(path), :<=, path.bytesize, bug9934)
path = File.expand_path("/a"*25)
- assert_equal(path.bytesize, ObjectSpace.memsize_of(path), bug9934)
+ assert_equal(path.bytesize+1, ObjectSpace.memsize_of(path), bug9934)
end
def test_expand_path_encoding