mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
* tramp-tests.el (tramp-test19-directory-files-and-attributes):
Instrument failed test case.
This commit is contained in:
parent
679f782755
commit
146a4cf202
@ -893,6 +893,7 @@ This tests also `file-readable-p' and `file-regular-p'."
|
||||
(tramp-dissect-file-name tramp-test-temporary-file-directory)
|
||||
nil 'keep-password)
|
||||
|
||||
(tramp--instrument-test-case 10
|
||||
(let ((tmp-name (tramp--test-make-temp-name))
|
||||
attr)
|
||||
(unwind-protect
|
||||
@ -905,18 +906,16 @@ This tests also `file-readable-p' and `file-regular-p'."
|
||||
(setq attr (directory-files-and-attributes tmp-name))
|
||||
(should (consp attr))
|
||||
(dolist (elt attr)
|
||||
(tramp--instrument-test-case 10
|
||||
(should
|
||||
(equal (file-attributes (expand-file-name (car elt) tmp-name))
|
||||
(cdr elt)))))
|
||||
(should
|
||||
(equal (file-attributes (expand-file-name (car elt) tmp-name))
|
||||
(cdr elt))))
|
||||
(setq attr (directory-files-and-attributes tmp-name 'full))
|
||||
(dolist (elt attr)
|
||||
(tramp--instrument-test-case 10
|
||||
(should
|
||||
(equal (file-attributes (car elt)) (cdr elt)))))
|
||||
(should
|
||||
(equal (file-attributes (car elt)) (cdr elt))))
|
||||
(setq attr (directory-files-and-attributes tmp-name nil "^b"))
|
||||
(should (equal (mapcar 'car attr) '("bar" "boz"))))
|
||||
(ignore-errors (delete-directory tmp-name 'recursive)))))
|
||||
(ignore-errors (delete-directory tmp-name 'recursive))))))
|
||||
|
||||
(ert-deftest tramp-test20-file-modes ()
|
||||
"Check `file-modes'.
|
||||
|
Loading…
Reference in New Issue
Block a user