]> git.eshelyaron.com Git - emacs.git/commitdiff
* tramp-tests.el (tramp-test19-directory-files-and-attributes):
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Feb 2014 18:26:40 +0000 (19:26 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 20 Feb 2014 18:26:40 +0000 (19:26 +0100)
Instrument failed test case.

test/automated/tramp-tests.el

index 9e77c111f4dc4eb77e06be03f83140886bde3244..374eba7c213069d717d88902d51045c8d82b561e 100644 (file)
@@ -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'.