diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-02 06:13:29 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-02 06:13:29 +0000 |
commit | 7d9fe82be47d67e44069e80904ef06d34d2cce29 (patch) | |
tree | 677fc8c086146a788c47a8369ca85e641f451343 /lib/test/unit | |
parent | 38cee6b43eeba043de8f126852f5f75702e4742d (diff) | |
download | ruby-7d9fe82be47d67e44069e80904ef06d34d2cce29.tar.gz |
* lib/test/unit/parallel.rb: use pack("m0") instead of
pack("m").gsub("\n","").
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/parallel.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb index 3ce95b9bd8..049b470e40 100644 --- a/lib/test/unit/parallel.rb +++ b/lib/test/unit/parallel.rb @@ -35,7 +35,7 @@ module Test th = Thread.new do begin while buf = (self.verbose ? i.gets : i.read(5)) - @stdout.puts "p #{[buf].pack("m").gsub("\n","")}" + @stdout.puts "p #{[buf].pack("m0")}" end rescue IOError rescue Errno::EPIPE @@ -69,7 +69,7 @@ module Test result << suite.name begin - @stdout.puts "done #{[Marshal.dump(result)].pack("m").gsub("\n","")}" + @stdout.puts "done #{[Marshal.dump(result)].pack("m0")}" rescue Errno::EPIPE; end return result ensure @@ -106,7 +106,7 @@ module Test begin require $1 rescue LoadError - @stdout.puts "after #{[Marshal.dump([$1, $!])].pack("m").gsub("\n","")}" + @stdout.puts "after #{[Marshal.dump([$1, $!])].pack("m0")}" @stdout.puts "ready" next end @@ -130,7 +130,7 @@ module Test rescue Errno::EPIPE rescue Exception => e begin - @stdout.puts "bye #{[Marshal.dump(e)].pack("m").gsub("\n","")}" + @stdout.puts "bye #{[Marshal.dump(e)].pack("m0")}" rescue Errno::EPIPE;end exit ensure |