aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/lbtest.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 15:03:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 15:03:05 +0000
commitefd6f6b85636e066e8d377f42e13fbe2a99d083b (patch)
tree980ca4b089cbf6083a70cefe5120a9fb860cc4b8 /test/ruby/lbtest.rb
parent28cc4f75437eec9e76f52723f042445332fd86f5 (diff)
downloadruby-efd6f6b85636e066e8d377f42e13fbe2a99d083b.tar.gz
* test/ruby/lbtest.rb: print at once including newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/lbtest.rb')
-rw-r--r--test/ruby/lbtest.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/lbtest.rb b/test/ruby/lbtest.rb
index df7872dc76..8da247b7b4 100644
--- a/test/ruby/lbtest.rb
+++ b/test/ruby/lbtest.rb
@@ -36,13 +36,13 @@ lb = LocalBarrier.new(n)
(n - 1).times do |i|
Thread.start do
sleep((rand(n) + 1) / 10.0)
- puts "#{i}: done"
+ print "#{i}: done\n"
lb.sync
- puts "#{i}: cont"
+ print "#{i}: cont\n"
end
end
lb.sync
-puts "#{n-1}: cone"
+print "#{n-1}: cone\n"
-puts "exit."
+print "exit.\n"