Raymond Toy pushed to branch master at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • src/code/filesys.lisp
    ... ... @@ -1122,11 +1122,7 @@ optionally keeping some of the most recent old versions."
    1122 1122
         (let ((results nil))
    
    1123 1123
           (enumerate-search-list
    
    1124 1124
     	  (pathname (merge-pathnames pathname
    
    1125
    -				     (make-pathname :name :wild
    
    1126
    -						    :type :wild
    
    1127
    -						    :version :wild
    
    1128
    -						    :defaults *default-pathname-defaults*)
    
    1129
    -				     :wild))
    
    1125
    +				     *default-pathname-defaults*))
    
    1130 1126
     	(enumerate-matches (name pathname nil :follow-links follow-links)
    
    1131 1127
     	  (when (or all
    
    1132 1128
     		    (let ((slash (position #\/ name :from-end t)))
    

  • tests/pathname.lisp
    ... ... @@ -72,4 +72,14 @@
    72 72
     			       :directory '(:absolute "system2" "module4")
    
    73 73
     			       :name nil :type nil)
    
    74 74
     		(parse-namestring "ASDFTEST:system2;module4;"))))
    
    75
    -  
    75
    +
    
    76
    +
    
    77
    +
    
    78
    +(define-test directory.dirs
    
    79
    +  (let ((files (directory "src/assembly/**/")))
    
    80
    +    ;; Verify that we only returned directories
    
    81
    +    (loop for f in files
    
    82
    +	  for name = (pathname-name f)
    
    83
    +	  and type = (pathname-type f)
    
    84
    +	  do
    
    85
    +	     (assert-true (and (null name) (null type)) f))))