Carl Shapiro pushed to branch master at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • tests/run-tests.lisp
    ... ... @@ -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.