Skip to content

Commit 92fef66

Browse files
authored
Alias *test-stream* to *standard-output*
Currently *TEST-STREAM* is bound to the value *STANDARD-OUTPUT* had when the form was evaluated, most likely when the system was loaded. An example of how this breaks is when supressing the output of quickload. Ej. (ql:quickload :lisp-unit2 :silent t)
1 parent e2c10c7 commit 92fef66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(in-package :lisp-unit2)
22
(cl-interpol:enable-interpol-syntax)
33

4-
(defvar *test-stream* *standard-output*)
4+
(defvar *test-stream* (make-synonym-stream '*standard-output*))
55
(defvar *test-log-stream* *test-stream*)
66
(defvar *unit-test* nil
77
"The currently executing unit test (bound in %run-test, ie every test
@@ -49,4 +49,4 @@
4949

5050
(define-condition collect-test-results ()
5151
((results :accessor results :initarg :results :initform nil))
52-
(:documentation "Signaled that with-test-results should collect this test-result-database"))
52+
(:documentation "Signaled that with-test-results should collect this test-result-database"))

0 commit comments

Comments
 (0)