mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-04-27 03:40:31 -07:00
tests: add regression test for *trace-output*
This commit is contained in:
parent
f54b0d9c78
commit
f66dd64e6f
1 changed files with 21 additions and 0 deletions
|
|
@ -123,3 +123,24 @@
|
|||
(restart-case
|
||||
(signal 'x :y 1)))
|
||||
nil))
|
||||
|
||||
|
||||
;;; Date: 2016-04-21 (Juraj)
|
||||
;;; Fixed: 2016-06-21 (Daniel Kochmański)
|
||||
;;; Description:
|
||||
;;;
|
||||
;;; Trace did not respect *TRACE-OUTPUT*.
|
||||
;;;
|
||||
;;; Bug: https://gitlab.com/embeddable-common-lisp/ecl/issues/236
|
||||
;;;
|
||||
(ext:with-clean-symbols (fact)
|
||||
(deftest mixed.0010.*trace-output*
|
||||
(progn
|
||||
(defun fact (n) (if (zerop n) :boom (fact (1- n))))
|
||||
(zerop (length
|
||||
(with-output-to-string (*trace-output*)
|
||||
(trace fact)
|
||||
(fact 3)
|
||||
(untrace fact)
|
||||
*trace-output*))))
|
||||
nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue