undefined variable: CLUNIT::*QUEUED-TESTS*
tpapp opened this issue · comments
SBCL (1.1.3) warns about an undefined variable when loading the library:
; file: /home/tamas/src/lisp/clunit/src/functions/rerun-failed-tests.lisp
; in: DEFUN CLUNIT:RERUN-FAILED-TESTS
; (SETF CLUNIT::QUEUED-TESTS (LIST)
; CLUNIT::LAST-CLUNIT-REPORT CLUNIT::CLUNIT-REPORT)
; --> PROGN SETF
; ==>
; (SETQ CLUNIT::QUEUED-TESTS (LIST))
;
; caught WARNING:
; undefined variable: CLUNIT::QUEUED-TESTS
; file: /home/tamas/src/lisp/clunit/src/functions/test-case-functions.lisp
; in: DEFUN CLUNIT:RUN-TEST
; (SETF CLUNIT::QUEUED-TESTS (LIST)
; CLUNIT::LAST-CLUNIT-REPORT CLUNIT::CLUNIT-REPORT)
; --> PROGN SETF
; ==>
; (SETQ CLUNIT::QUEUED-TESTS (LIST))
;
; caught WARNING:
; undefined variable: CLUNIT::QUEUED-TESTS
;
; compilation unit finished
; Undefined variable:
; CLUNIT::QUEUED-TESTS
; caught 2 WARNING conditions
Thanks for the heads up, had forgotten to defvar the variable first.