diff options
| author | Michael Albinus | 2019-08-30 13:54:42 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-08-30 13:54:42 +0200 |
| commit | d09a1d66c608e9e993ce73515cf83f785d04e407 (patch) | |
| tree | 9379e528efeca86ca783ff8dd9f8a4746e3439f1 /test | |
| parent | cea78adf7c57e82f1343c7a004cd4053d2e312a6 (diff) | |
| download | emacs-d09a1d66c608e9e993ce73515cf83f785d04e407.tar.gz emacs-d09a1d66c608e9e993ce73515cf83f785d04e407.zip | |
Extend tramp--test-check-files (Bug#37228)
* test/lisp/net/tramp-tests.el (tramp--test-check-files): Test also
`directory-files-and-attributes'. (Bug#37228)
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 5767551e326..0d37d0763f7 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -5153,7 +5153,8 @@ This requires restrictions of file name syntax." | |||
| 5153 | (tmp-name1 (tramp--test-make-temp-name nil quoted)) | 5153 | (tmp-name1 (tramp--test-make-temp-name nil quoted)) |
| 5154 | (tmp-name2 (tramp--test-make-temp-name 'local quoted)) | 5154 | (tmp-name2 (tramp--test-make-temp-name 'local quoted)) |
| 5155 | (files (delq nil files)) | 5155 | (files (delq nil files)) |
| 5156 | (process-environment process-environment)) | 5156 | (process-environment process-environment) |
| 5157 | (sorted-files (sort (copy-sequence files) #'string-lessp))) | ||
| 5157 | (unwind-protect | 5158 | (unwind-protect |
| 5158 | (progn | 5159 | (progn |
| 5159 | (make-directory tmp-name1) | 5160 | (make-directory tmp-name1) |
| @@ -5200,10 +5201,20 @@ This requires restrictions of file name syntax." | |||
| 5200 | ;; Check file names. | 5201 | ;; Check file names. |
| 5201 | (should (equal (directory-files | 5202 | (should (equal (directory-files |
| 5202 | tmp-name1 nil directory-files-no-dot-files-regexp) | 5203 | tmp-name1 nil directory-files-no-dot-files-regexp) |
| 5203 | (sort (copy-sequence files) #'string-lessp))) | 5204 | sorted-files)) |
| 5204 | (should (equal (directory-files | 5205 | (should (equal (directory-files |
| 5205 | tmp-name2 nil directory-files-no-dot-files-regexp) | 5206 | tmp-name2 nil directory-files-no-dot-files-regexp) |
| 5206 | (sort (copy-sequence files) #'string-lessp))) | 5207 | sorted-files)) |
| 5208 | (should (equal (mapcar | ||
| 5209 | #'car | ||
| 5210 | (directory-files-and-attributes | ||
| 5211 | tmp-name1 nil directory-files-no-dot-files-regexp)) | ||
| 5212 | sorted-files)) | ||
| 5213 | (should (equal (mapcar | ||
| 5214 | #'car | ||
| 5215 | (directory-files-and-attributes | ||
| 5216 | tmp-name2 nil directory-files-no-dot-files-regexp)) | ||
| 5217 | sorted-files)) | ||
| 5207 | 5218 | ||
| 5208 | ;; `substitute-in-file-name' could return different | 5219 | ;; `substitute-in-file-name' could return different |
| 5209 | ;; values. For `adb', there could be strange file | 5220 | ;; values. For `adb', there could be strange file |