summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-17 11:06:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-17 11:06:22 +0000
commit3eabe19ea9cdee6064231d298683701e7ba0056e (patch)
tree7285b9ba4359be8c8858d60a978b3a2a59a152aa /test
parente44f5bcbd90d51a1d638e19ec08726b1f9b10664 (diff)
* test/ruby/test_io.rb (test_threaded_flush): test "hi" is not output
twice. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index bd4326060c..1cfcba181a 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1619,7 +1619,9 @@ End
}.gsub(/^\s+/, '')
10.times.map do
Thread.start do
- assert_in_out_err([], src, [%q["hi!"]])
+ assert_in_out_err([], src) {|stdout, stderr|
+ assert_no_match(/hi.*hi/, stderr.join)
+ }
end
end.each {|th| th.join}
end