From d4101d636fa3d0a4274501b547303fa228792c22 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 30 May 2014 08:52:58 +0000 Subject: 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 --- test/lib/test/unit/parallel.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/lib') 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 -- cgit v1.2.3