aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
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
commit5b6a11d9f1b66497c575968acba2e55957fb9956 (patch)
tree8b09bc3df6bb7c2e0d6575b61ac4e469d71bfb44 /test/ruby
parenta432b9a0a8b63c06de34e02ba4898974682e1f85 (diff)
downloadruby-5b6a11d9f1b66497c575968acba2e55957fb9956.tar.gz
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')
-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'