]> git.eshelyaron.com Git - emacs.git/commitdiff
Make tramp-test42-auto-load more robust
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 30 Nov 2017 19:31:33 +0000 (20:31 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 30 Nov 2017 19:31:33 +0000 (20:31 +0100)
* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Make it more robust.  Don't skip.

test/lisp/net/tramp-tests.el

index 8a551db778592d4383ecfcb8f2e4cd00df121d9d..b0fe3f83e9706a5372a1731448127896e3a43438 100644 (file)
@@ -4613,15 +4613,13 @@ process sentinels.  They shall not disturb each other."
         (ignore-errors (cancel-timer timer))
         (ignore-errors (delete-directory tmp-name 'recursive))))))
 
+;; This test is inspired by Bug#29163.
 (ert-deftest tramp-test42-auto-load ()
   "Check that Tramp autoloads properly."
-  (skip-unless (tramp--test-enabled))
-  (skip-unless (not (tramp--test-mock-p)))
-
   (let ((default-directory (expand-file-name temporary-file-directory))
        (code
         (format
-         "(message \"Tramp loaded: %%s\" (consp (file-attributes %S)))"
+         "(message \"Tramp loaded: %%s\" (and (file-remote-p %S) t))"
          tramp-test-temporary-file-directory)))
     (should
      (string-match