Skip to content
Snippets Groups Projects
Commit da414c43 authored by pfdietz's avatar pfdietz
Browse files

More immediate printing when running tests

parent 2c08bd93
No related branches found
No related tags found
No related merge requests found
...@@ -256,13 +256,14 @@ ...@@ -256,13 +256,14 @@
(length (vals entry)) (length (vals entry))
(vals entry)) (vals entry))
(handler-case (handler-case
(let ((s (format nil "Actual value~P: ~ (let ((st (format nil "Actual value~P: ~
~{~S~^~%~15t~}.~%" ~{~S~^~%~15t~}.~%"
(length r) r))) (length r) r)))
(format t "~A" s)) (format s "~A" st))
(error () #+gcl (format t "Actual value: #<error during printing>~%") (error () #+gcl (format s "Actual value: #<error during printing>~%")
#-gcl (format t "Actual value~P: #<error during printing>~%")) #-gcl (format s "Actual value~P: #<error during printing>~%")))
))))) (finish-output s)
))))
(when (not (pend entry)) *test*)) (when (not (pend entry)) *test*))
(defun expanded-eval (form) (defun expanded-eval (form)
...@@ -326,11 +327,14 @@ ...@@ -326,11 +327,14 @@
of ~A tests total.~%" of ~A tests total.~%"
(count t (the list (cdr *entries*)) :key #'pend) (count t (the list (cdr *entries*)) :key #'pend)
(length (cdr *entries*))) (length (cdr *entries*)))
(finish-output s)
(dolist (entry (cdr *entries*)) (dolist (entry (cdr *entries*))
(when (and (pend entry) (when (and (pend entry)
(not (has-disabled-note entry))) (not (has-disabled-note entry)))
(format s "~@[~<~%~:; ~:@(~S~)~>~]" (format s "~@[~<~%~:; ~:@(~S~)~>~]"
(do-entry entry s)))) (do-entry entry s))
(finish-output s)
))
(let ((pending (pending-tests)) (let ((pending (pending-tests))
(expected-table (make-hash-table :test #'equal))) (expected-table (make-hash-table :test #'equal)))
(dolist (ex *expected-failures*) (dolist (ex *expected-failures*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment