diff options
| author | Michael Albinus | 2014-02-20 19:26:40 +0100 |
|---|---|---|
| committer | Michael Albinus | 2014-02-20 19:26:40 +0100 |
| commit | 146a4cf20237685a47cb3e8e85b85d63d4dff704 (patch) | |
| tree | 64caa8030928593139687ed82c08e74c7ef0c3d0 /test | |
| parent | 679f7827555eebb588131aebfcb9fdb959199904 (diff) | |
| download | emacs-146a4cf20237685a47cb3e8e85b85d63d4dff704.tar.gz emacs-146a4cf20237685a47cb3e8e85b85d63d4dff704.zip | |
* tramp-tests.el (tramp-test19-directory-files-and-attributes):
Instrument failed test case.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/tramp-tests.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index 9e77c111f4d..374eba7c213 100644 --- a/test/automated/tramp-tests.el +++ b/test/automated/tramp-tests.el | |||
| @@ -893,6 +893,7 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 893 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | 893 | (tramp-dissect-file-name tramp-test-temporary-file-directory) |
| 894 | nil 'keep-password) | 894 | nil 'keep-password) |
| 895 | 895 | ||
| 896 | (tramp--instrument-test-case 10 | ||
| 896 | (let ((tmp-name (tramp--test-make-temp-name)) | 897 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 897 | attr) | 898 | attr) |
| 898 | (unwind-protect | 899 | (unwind-protect |
| @@ -905,18 +906,16 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 905 | (setq attr (directory-files-and-attributes tmp-name)) | 906 | (setq attr (directory-files-and-attributes tmp-name)) |
| 906 | (should (consp attr)) | 907 | (should (consp attr)) |
| 907 | (dolist (elt attr) | 908 | (dolist (elt attr) |
| 908 | (tramp--instrument-test-case 10 | 909 | (should |
| 909 | (should | 910 | (equal (file-attributes (expand-file-name (car elt) tmp-name)) |
| 910 | (equal (file-attributes (expand-file-name (car elt) tmp-name)) | 911 | (cdr elt)))) |
| 911 | (cdr elt))))) | ||
| 912 | (setq attr (directory-files-and-attributes tmp-name 'full)) | 912 | (setq attr (directory-files-and-attributes tmp-name 'full)) |
| 913 | (dolist (elt attr) | 913 | (dolist (elt attr) |
| 914 | (tramp--instrument-test-case 10 | 914 | (should |
| 915 | (should | 915 | (equal (file-attributes (car elt)) (cdr elt)))) |
| 916 | (equal (file-attributes (car elt)) (cdr elt))))) | ||
| 917 | (setq attr (directory-files-and-attributes tmp-name nil "^b")) | 916 | (setq attr (directory-files-and-attributes tmp-name nil "^b")) |
| 918 | (should (equal (mapcar 'car attr) '("bar" "boz")))) | 917 | (should (equal (mapcar 'car attr) '("bar" "boz")))) |
| 919 | (ignore-errors (delete-directory tmp-name 'recursive))))) | 918 | (ignore-errors (delete-directory tmp-name 'recursive)))))) |
| 920 | 919 | ||
| 921 | (ert-deftest tramp-test20-file-modes () | 920 | (ert-deftest tramp-test20-file-modes () |
| 922 | "Check `file-modes'. | 921 | "Check `file-modes'. |