]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix newly introduced error in tramp-tests.el (Bug#49406)
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 5 Jul 2021 08:24:31 +0000 (10:24 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 5 Jul 2021 08:24:31 +0000 (10:24 +0200)
* test/lisp/net/tramp-tests.el (tramp--test-check-files):
Filter out empty strings.  (Bug#49406)

test/lisp/net/tramp-tests.el

index 6aa8629f33403a6eb54cc521ea9ba51699fb3d5f..7f894448a6734ebdc148962b1b9f8bb12a8a8741 100644 (file)
@@ -5935,7 +5935,9 @@ This requires restrictions of file name syntax."
            (file-truename tramp-test-temporary-file-directory))
           (tmp-name1 (tramp--test-make-temp-name nil quoted))
           (tmp-name2 (tramp--test-make-temp-name 'local quoted))
-          (files (delq nil files))
+          (files
+            (delq
+             nil (mapcar (lambda (x) (unless (string-empty-p x) x)) files)))
           (process-environment process-environment)
           (sorted-files (sort (copy-sequence files) #'string-lessp))
           buffer)
@@ -5945,7 +5947,7 @@ This requires restrictions of file name syntax."
            (make-directory tmp-name2)
 
            (dolist (elt files)
-             ;(tramp--test-message "%s" elt)
+              ;(tramp--test-message "'%s'" elt)
              (let* ((file1 (expand-file-name elt tmp-name1))
                     (file2 (expand-file-name elt tmp-name2))
                     (file3 (expand-file-name (concat elt "foo") tmp-name1)))