emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 40b0675: Fix ‘make check’ failure


From: Paul Eggert
Subject: [Emacs-diffs] master 40b0675: Fix ‘make check’ failure
Date: Fri, 26 Jul 2019 12:42:00 -0400 (EDT)

branch: master
commit 40b067522fe122668350777451bb5b08e666842b
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix ‘make check’ failure
    
    Problem introduced in 2019-07-26T07:08:40!address@hidden.
    * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
    Don’t count "0 unexpected" as unexpected.
---
 lisp/emacs-lisp/ert.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 272fd4a..da241e6 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -1503,9 +1503,10 @@ Ran \\([0-9]+\\) tests, \\([0-9]+\\) results as expected\
             (setq nrun (+ nrun (string-to-number (match-string 2)))
                   nexpected (+ nexpected (string-to-number (match-string 3))))
             (when (match-string 4)
-              (push logfile unexpected)
-              (setq nunexpected (+ nunexpected
-                                   (string-to-number (match-string 4)))))
+             (let ((n (string-to-number (match-string 4))))
+               (unless (zerop n)
+                 (push logfile unexpected)
+                 (setq nunexpected (+ nunexpected n)))))
             (when (match-string 5)
               (push logfile skipped)
               (setq nskipped (+ nskipped



reply via email to

[Prev in Thread] Current Thread [Next in Thread]