]> git.eshelyaron.com Git - emacs.git/commitdiff
tramp-test42-auto-load: Add expected-result.
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 15 Jun 2019 05:23:25 +0000 (07:23 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 15 Jun 2019 05:23:25 +0000 (07:23 +0200)
* test/lisp/net/tramp-tests.el (tramp-test42-auto-load):
Expect a failed result if remote file access is not enabled,
as it happens while doing the test on Windows.

test/lisp/net/tramp-tests.el

index 70b2646cc893cd1c1a5dcc2913b155e00c394cf8..03b0018298b2a905c451a3b242457f1eba863250 100644 (file)
@@ -4682,6 +4682,7 @@ process sentinels.  They shall not disturb each other."
 ;; This test is inspired by Bug#29163.
 (ert-deftest tramp-test42-auto-load ()
   "Check that Tramp autoloads properly."
+  :expected-result (if (tramp--test-enabled) :passed :failed)
   (let ((default-directory (expand-file-name temporary-file-directory))
        (code
         (format