Commit 81134efb authored by Robert P. Goldman's avatar Robert P. Goldman
Browse files

New test for cache correctness.

It seems that the cache may override the error flag for FIND-SYSTEM.
parent b90d556a
;;; -*- Lisp -*-
;;; test to check that the cache doesn't upset error signaling from FIND-SYSTEM
(in-package asdf-test)
(defparameter *all-systems*
(defun clear-caches-and-search ()
(setf asdf:*central-registry* nil)
(mapc #'asdf/find-system:clear-defined-system *all-systems*))
(assert (not (asdf:find-system "test-asdf/force1" nil)))
(multiple-value-bind (ret cond)
(ignore-errors (asdf:find-system "test-asdf/force1" t))
(assert (not ret))
(assert (typep cond 'asdf:missing-component)))
Supports Markdown
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