summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 07:01:36 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 07:01:36 +0000
commitb3602a5453388648677dfba4fdc9bf2ed5050ab1 (patch)
treea70821cfea74c2b12e90e84c86c8c86378634426 /test/lib
parent3077816cc1329d231d864a29e639fe64687b4b31 (diff)
set as binary before gsub
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/envutil.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 723bfdd..4faeabb 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -330,11 +330,11 @@ module Test
full_message << "pid #{pid}"
full_message << " killed by #{sigdesc}" if sigdesc
if out and !out.empty?
- full_message << "\n#{out.gsub(/^/, '| ')}"
+ full_message << "\n#{out.b.gsub(/^/, '| ')}"
full_message << "\n" if /\n\z/ !~ full_message
end
if log
- full_message << "\n#{log.gsub(/^/, '| ')}"
+ full_message << "\n#{log.b.gsub(/^/, '| ')}"
end
full_message
end