Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tarn Burton
asdf
Commits
bb4d316f
"README.md" did not exist on "cf055d22404debd1c452c95bafa226d0baa7543c"
Commit
bb4d316f
authored
10 years ago
by
Robert P. Goldman
Browse files
Options
Downloads
Patches
Plain Diff
This test version shows the failure.
parent
96b9b8f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test-try-refinding.script
+29
-2
29 additions, 2 deletions
test/test-try-refinding.script
with
29 additions
and
2 deletions
test/test-try-refinding.script
+
29
−
2
View file @
bb4d316f
...
@@ -10,9 +10,12 @@
...
@@ -10,9 +10,12 @@
;;(terpri)
;;(terpri)
(assert (asdf:find-system "test-asdf/force1"))
(assert (asdf:find-system "test-asdf/force1"))
(defun clear-caches-and-search ()
(setf asdf:*central-registry* nil)
(asdf/find-system:clear-defined-system "test-asdf/force1"))
(DBG "Clearing the caches and finding.")
(DBG "Clearing the caches and finding.")
(setf asdf:*central-registry* nil)
(clear-caches-and-search)
(asdf/find-system:clear-defined-system "test-asdf/force1")
(assert (not (asdf:find-system "test-asdf/force1" nil)))
(assert (not (asdf:find-system "test-asdf/force1" nil)))
(let (tried-once)
(let (tried-once)
(handler-bind
(handler-bind
...
@@ -33,3 +36,27 @@
...
@@ -33,3 +36,27 @@
;; avoid infinite looping
;; avoid infinite looping
(error c)))))
(error c)))))
(asdf:find-system "test-asdf/force1")))
(asdf:find-system "test-asdf/force1")))
(DBG "Refinding test successful.")
(DBG "Now trying LOAD-SYSTEM with refinding.")
(clear-caches-and-search)
(let (tried-once)
(handler-bind
((asdf:missing-dependency-of-version
(lambda (c)
;; Nothing Quicklisp can do to recover from this, so
;; just resignal
(error c)))
(asdf:missing-dependency
(lambda (c)
(if (not tried-once)
(let ((missing (asdf::missing-requires c)))
(assert (equal missing "test-asdf/force1"))
(setf tried-once t)
(DBG "Trying to reset the central registry and retry.")
(setf asdf:*central-registry* *old-registry*)
(asdf:load-system missing))
;; avoid infinite looping
(error c)))))
(asdf:load-system "test-asdf/force1")))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment