diff tests/automated/test-harness.el @ 1722:c04bc2b126ef

[xemacs-hg @ 2003-09-28 18:54:27 by adrian] xemacs-21.5: Emergency fix for arithmetic error in test-harness.el -------------------- ChangeLog entries follow: -------------------- tests/ChangeLog addition: 2003-09-28 Adrian Aichner <adrian@xemacs.org> * automated/test-harness.el (batch-test-emacs): Emergency fix for arithmetic error when no tests are run.
author adrian
date Sun, 28 Sep 2003 18:54:29 +0000
parents 58c2d4f889be
children 5a9a66ba67ca
line wrap: on
line diff
--- a/tests/automated/test-harness.el	Sat Sep 27 21:52:45 2003 +0000
+++ b/tests/automated/test-harness.el	Sun Sep 28 18:54:29 2003 +0000
@@ -477,11 +477,13 @@
 		 (fname (file-name-nondirectory (first head)))
 		 (nsucc (second head))
 		 (ntest (third head)))
-	    (message template
-		     (concat fname ":")
-		     nsucc
-		     ntest
-		     (/ (* 100 nsucc) ntest))
+	    (if (> ntest 0)
+		(message template
+			 (concat fname ":")
+			 nsucc
+			 ntest
+			 (/ (* 100 nsucc) ntest))
+	      (message "%s: No tests run\n" fname))
 	    (setq results (cdr results))))))
     (message "\nDone")
     (kill-emacs (if error 1 0))))