]> git.eshelyaron.com Git - emacs.git/commitdiff
* automated/tramp-tests.el (tramp-test17-insert-directory): Do not
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 25 Dec 2014 21:00:08 +0000 (22:00 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 25 Dec 2014 21:00:08 +0000 (22:00 +0100)
expect a given order of "." and "..".

test/ChangeLog
test/automated/tramp-tests.el

index a91392d3fe758a0c1801a12cda95f57943af3e6f..14780c09e6faa79a6367708760045c495272f424 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-25  Michael Albinus  <michael.albinus@gmx.de>
+
+       * automated/tramp-tests.el (tramp-test17-insert-directory): Do not
+       expect a given order of "." and "..".
+
 2014-12-22  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 
        * automated/python-tests.el (python-indent-electric-colon-2)
index 864a43d638f9bb3bf45f7acf310014681ed3525c..317ce12fc8e5a58f1430f7dfe49de7b81b9320c4 100644 (file)
@@ -953,7 +953,12 @@ This tests also `file-directory-p' and `file-accessible-directory-p'."
            (goto-char (point-min))
            (should
             (looking-at-p
-             "\\(total.+[[:digit:]]+\n\\)?.+ \\.\n.+ \\.\\.\n.+ foo$"))))
+             (concat
+              ;; There might be a summary line.
+              "\\(total.+[[:digit:]]+\n\\)?"
+              ;; We don't know in which order "." and ".." appear.
+              "\\(.+ \\.?\\.\n\\)\\{2\\}"
+              ".+ foo$")))))
       (ignore-errors (delete-directory tmp-name1 'recursive)))))
 
 (ert-deftest tramp-test18-file-attributes ()