]> git.eshelyaron.com Git - emacs.git/commitdiff
Always include the number of unexpected results here too
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 26 Jul 2019 07:08:40 +0000 (09:08 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 26 Jul 2019 07:58:53 +0000 (09:58 +0200)
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the
number of unexpected results here as well.

lisp/emacs-lisp/ert.el

index c90c06d0849410d1fbb8e19164e9531b6bf8f6e9..272fd4aec2fa38f621673328368257b0e4e574c3 100644 (file)
@@ -1351,15 +1351,13 @@ Returns the stats object."
           (let ((unexpected (ert-stats-completed-unexpected stats))
                 (skipped (ert-stats-skipped stats))
                (expected-failures (ert--stats-failed-expected stats)))
-            (message "\n%sRan %s tests, %s results as expected%s%s (%s, %f sec)%s\n"
+            (message "\n%sRan %s tests, %s results as expected, %s unexpected%s (%s, %f sec)%s\n"
                      (if (not abortedp)
                          ""
                        "Aborted: ")
                      (ert-stats-total stats)
                      (ert-stats-completed-expected stats)
-                     (if (zerop unexpected)
-                         ""
-                       (format ", %s unexpected" unexpected))
+                     unexpected
                      (if (zerop skipped)
                          ""
                        (format ", %s skipped" skipped))