1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/unit.rb: defer failures in verbose mode

* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
  failed messages until the end in verbose mode, to get rid of
  interleaving failures with progress messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-03-19 12:56:25 +00:00
parent 448b4eb117
commit 2019f8cb1c
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Sat Mar 19 21:56:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
failed messages until the end in verbose mode, to get rid of
interleaving failures with progress messages.
Sat Mar 19 21:53:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* numeric.c (fix_cmp): invert the result as the comarison is

View file

@ -649,6 +649,7 @@ module Test
def succeed; del_status_line; end
def failed(s)
return if s and @options[:verbose]
sep = "\n"
@report_count ||= 0
report.each do |msg|