duplicate-components-test.script 613 Bytes
Newer Older
1 2 3 4 5
;;; -*- Lisp -*-

(handler-case (asdf:find-system "duplicate-components")
  (asdf:duplicate-names (x) (declare (ignore x)) t)
  (asdf:load-system-definition-error (x)
6
    (or (and (asdf/find-system::error-condition x)
7
             (typep (asdf/find-system::error-condition x) 'asdf:duplicate-names))
8 9 10 11
        (progn
          (DBG :err (asdf/find-system::error-condition x))
          (error "LOAD-SYSTEM-DEFINITION-ERROR not as expected ~%~
(no contained DUPLICATE-NAMES error)."))))
12
  (:no-error (x)
13 14
    (error "FIND-SYSTEM of duplicate-components returned ~S ~%~
instead of raising DUPLICATE-NAMES error." x)))