Carl Shapiro pushed to branch master at cmucl / cmucl
Commits:
-
5b27393f
by Carl Shapiro at 2023-07-30T21:15:48-07:00
-
a7300f03
by Carl Shapiro at 2023-07-31T05:28:58+00:00
1 changed file:
Changes:
| ... | ... | @@ -110,9 +110,10 @@ |
| 110 | 110 | (format t " ~5D tests failed~%" failed)
|
| 111 | 111 | (format t " ~5D tests with execution errors~%" execute-errors)
|
| 112 | 112 | (format t "~5,3f% of the tests passed~%"
|
| 113 | - (float (* 100
|
|
| 114 | - (- 1 (/ (+ failed execute-errors)
|
|
| 115 | - (+ passed failed execute-errors))))))
|
|
| 113 | + (let ((total (+ passed failed execute-errors)))
|
|
| 114 | + (if (zerop total)
|
|
| 115 | + 0.0
|
|
| 116 | + (* 100.0 (- 1.0 (/ (- total passed) total))))))
|
|
| 116 | 117 | ;; Print some info about any failed tests. Then exit. We want to
|
| 117 | 118 | ;; set the exit code so that any scripts runnning this can
|
| 118 | 119 | ;; determine if there were any test failures.
|