Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
648c1127
by Raymond Toy at 2023-05-31T03:55:52+00:00
-
660ab4c5
by Raymond Toy at 2023-05-31T03:56:07+00:00
2 changed files:
Changes:
... | ... | @@ -610,8 +610,8 @@ |
610 | 610 | ;; We are an absolute pathname, so we can just use it.
|
611 | 611 | pathname-directory)
|
612 | 612 | (t
|
613 | - ;; We are a relative directory. So we lose.
|
|
614 | - (lose)))))
|
|
613 | + ;; We are a relative directory, so just return it as is.
|
|
614 | + pathname-directory))))
|
|
615 | 615 | (strings (unparse-unix-directory-list result-dir)))
|
616 | 616 | (let* ((pathname-version (%pathname-version pathname))
|
617 | 617 | (version-needed (and pathname-version
|
... | ... | @@ -977,3 +977,12 @@ |
977 | 977 | (assert-true (equal (make-pathname :version :newest)
|
978 | 978 | (make-pathname :version :unspecific)))
|
979 | 979 | )
|
980 | + |
|
981 | +(define-test issue.216.enough-namestring-relative-dir
|
|
982 | + (:tag :issues)
|
|
983 | + (let ((pathname #p"foo/bar.lisp"))
|
|
984 | + (dolist (defaults '(#p"/tmp/zot/" #p"/tmp/zot/foo/"))
|
|
985 | + (let ((enough (enough-namestring pathname defaults)))
|
|
986 | + ;; This is the condition from the CLHS entry for enough-namestring
|
|
987 | + (assert-equal (merge-pathnames enough defaults)
|
|
988 | + (merge-pathnames (parse-namestring pathname nil defaults) defaults)))))) |