Raymond Toy pushed to branch master at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • src/code/filesys.lisp
    ... ... @@ -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
    

  • tests/issues.lisp
    ... ... @@ -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))))))