Skip to content

Commit

Permalink
tests: add tests for 7max#8
Browse files Browse the repository at this point in the history
  • Loading branch information
scymtym committed Nov 29, 2017
1 parent 1c7f44e commit fc63ee5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test-regressions.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,21 @@
"https://github.com/sharplispers/log4cl/issues/1"
(log4cl:start-hierarchy-watcher-thread)
(finishes (log4cl-impl::save-hook)))

(deftest recursive-lock.issue#8.1 ()
"https://github.com/sharplispers/log4cl/issues/8"
(finishes
(with-simple-restart (abort "Abort")
(handler-bind
((error (lambda (condition)
(log:error "caught error: ~A" condition)
(abort))))
(log:warn "~@{~A ~A~}" 1)))))

(defun logging-function ()
(log:warn "I log, too")
:result)

(deftest recursive-lock.issue#8.2 ()
"https://github.com/sharplispers/log4cl/issues/8"
(finishes (log:warn "~A" (logging-function))))

0 comments on commit fc63ee5

Please sign in to comment.