summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 13:05:05 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 13:05:05 +0000
commit0ec91a46acab4a17c3cb8db98c4f8086b731c9a4 (patch)
tree8b09bc3df6bb7c2e0d6575b61ac4e469d71bfb44 /test/ruby/test_io.rb
parente92ca247d2a32b6779d008ceeebfc2faf58e4e6c (diff)
test/ruby/test_io.rb (test_write_no_garbage): Add detailed message
I saw this test failed once. There is no problem if `before > after` but we cannot check it. To allow diagnosis in future, the detailed message is added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index a12cda6277..3ffc7281df 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -3656,7 +3656,7 @@ __END__
s = w.syswrite(buf)
after = ObjectSpace.count_objects(res)[:T_STRING]
assert_equal before, after,
- 'no strings left over after write [ruby-core:78898] [Bug #13085]'
+ "no strings left over after write [ruby-core:78898] [Bug #13085]: #{ before } strings before write -> #{ after } strings after write"
assert_not_predicate buf, :frozen?, 'no inadvertent freeze'
assert_equal buf.bytesize, n, 'IO#write wrote expected size'
assert_equal s, n, 'IO#syswrite wrote expected size'