Commit bdde8a36 authored by Francois-Rene Rideau's avatar Francois-Rene Rideau

Don't print too many backtraces in asdf-pathname-test.

parent 35decf6b
......@@ -108,12 +108,19 @@
failures)
nil))))
(defparameter *backtraces* 0)
(defparameter *max-backtraces* 2)
(defun test-file (file &key configuration (test-status *test-status*) (start-time 0))
(with-slots (system-count directory-count file-count
system-failures directory-failures file-failures failures) test-status
(incf file-count)
(unless (block nil
(handler-bind ((error #'(lambda (c) (print-condition-backtrace c) (return nil))))
(handler-bind ((error #'(lambda (c)
(incf *backtraces*)
(when (<= *backtraces* *max-backtraces*)
(print-condition-backtrace c))
(return nil))))
(with-open-file (stream (component-pathname file)
:direction :output :if-exists :supersede
:if-does-not-exist :error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment