From f3db73f107d035d76d455829cb9968999a8ef32d Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 15 Jun 2014 11:49:25 +0000 Subject: 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 --- test/ruby/test_file_exhaustive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_file_exhaustive.rb') 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 -- cgit v1.2.3