diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_io.rb | 4 |
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 |