aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-22 01:11:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-22 01:11:03 +0000
commit66225416bda582bf81cd393172d1b7b5163027a0 (patch)
tree90ce61a46778507050376ab7683fdf3711508ea1
parent520650798c5eb44cfb31f9425584942c1d2b6f2a (diff)
downloadruby-66225416bda582bf81cd393172d1b7b5163027a0.tar.gz
test/unit.rb: defer failures in non-replace mode
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print failed messages only if replacing mode, otherwise defer them until the end, to get rid of interleaving failures with progress messages. refix r54195. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--test/lib/test/unit.rb2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 25b127f82d..a7bffa66a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Mar 22 10:11:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print
+ failed messages only if replacing mode, otherwise defer them
+ until the end, to get rid of interleaving failures with progress
+ messages. refix r54195.
+
Tue Mar 22 03:45:03 2016 NARUSE, Yui <naruse@ruby-lang.org>
* time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index fc210d983c..72d4ba60a7 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -650,7 +650,7 @@ module Test
def succeed; del_status_line; end
def failed(s)
- return if s and @options[:verbose]
+ return if s and @options[:job_status] != :replace
sep = "\n"
@report_count ||= 0
report.each do |msg|