diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-30 08:52:58 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-30 08:52:58 +0000 |
commit | d4101d636fa3d0a4274501b547303fa228792c22 (patch) | |
tree | e5c1c0b3fdc0d4695027a40a9c7865037174c1ea | |
parent | bb1fb1167e09b88f3c41a7b7e1c6aca14b74b4b7 (diff) | |
download | ruby-d4101d636fa3d0a4274501b547303fa228792c22.tar.gz |
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
-rw-r--r-- | test/lib/test/unit/parallel.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb index 3cf0c77256..7dac4bdb1c 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 |