Skip to content
test-try-recompiling-1.script 952 B
Newer Older
;;; -*- Lisp -*-

;;; test asdf:try-recompiling restart

(defvar *caught-error* nil)

 (asdf::delete-file-if-exists (compile-file-pathname "try-recompiling-1"))
 (handler-bind ((error (lambda (c)
                         (setf *caught-error* t)
                         (multiple-value-bind (name mode)
                             (find-symbol
                              (symbol-name 'try-recompiling)
                              :asdf)
                           (assert (eq mode :external))
                           (let ((restart (find-restart name c)))
                             #+(or)
                             ;; debug
                             (print (list c restart (compute-restarts c)))
                             (when restart
                               (invoke-restart restart)))))))
   (oos 'load-op 'try-recompiling-1))