summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 08:52:58 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 08:52:58 +0000
commitd4101d636fa3d0a4274501b547303fa228792c22 (patch)
treee5c1c0b3fdc0d4695027a40a9c7865037174c1ea /test
parentbb1fb1167e09b88f3c41a7b7e1c6aca14b74b4b7 (diff)
force_encoding to get the log of failure by Encoding::CompatibilityError
https://travis-ci.org/ruby/ruby/jobs/26361118 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/lib/test/unit/parallel.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb
index 3cf0c772560..7dac4bdb1c8 100644
--- a/test/lib/test/unit/parallel.rb
+++ b/test/lib/test/unit/parallel.rb
@@ -36,6 +36,7 @@ module Test
th = Thread.new do
begin
while buf = (self.verbose ? i.gets : (i.readpartial(1024) || i.read(5)))
+ buf.force_encoding(Encoding::ASCII_8BIT)
buf.sub!(/\A\n?\.+(?!\z)/, '')
_report "p", buf
end