aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2021-09-05 09:23:30 +0200
committerMichael Albinus2021-09-05 09:23:30 +0200
commite6f936eb4d28bf23eb367d4245a137284d5491ee (patch)
treeec1d5cd10ff02460237733a73f03ec6226e3f9a4
parent76300b87d472354507a872fa84709df9d5d4a59b (diff)
downloademacs-e6f936eb4d28bf23eb367d4245a137284d5491ee.tar.gz
emacs-e6f936eb4d28bf23eb367d4245a137284d5491ee.zip
Cleanup tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp--test--deftest-direct-async-process): Fix macro declaration. (tramp-test29-start-file-process, tramp-test30-make-process): Do not run connection type test for direct async processes.
-rw-r--r--test/lisp/net/tramp-tests.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 9a9684dd736..27b37d4f191 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -4579,6 +4579,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
4579 4579
4580 ;; Process connection type. 4580 ;; Process connection type.
4581 (when (and (tramp--test-sh-p) 4581 (when (and (tramp--test-sh-p)
4582 (not (tramp-direct-async-process-p))
4582 ;; `executable-find' has changed the number of 4583 ;; `executable-find' has changed the number of
4583 ;; parameters in Emacs 27.1, so we use `apply' for 4584 ;; parameters in Emacs 27.1, so we use `apply' for
4584 ;; older Emacsen. 4585 ;; older Emacsen.
@@ -4635,8 +4636,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
4635 "Define ert test `TEST-direct-async' for direct async processes. 4636 "Define ert test `TEST-direct-async' for direct async processes.
4636If UNSTABLE is non-nil, the test is tagged as `:unstable'." 4637If UNSTABLE is non-nil, the test is tagged as `:unstable'."
4637 (declare (indent 1)) 4638 (declare (indent 1))
4638 ;; `make-process' supports file name handlers since Emacs 27. 4639 ;; `make-process' supports file name handlers since Emacs 27. We
4639 (when (let ((file-name-handler-alist '(("" . #'tramp--test-always)))) 4640 ;; cannot use `tramp--test-always' during compilation of the macro.
4641 (when (let ((file-name-handler-alist '(("" . (lambda (&rest _) t)))))
4640 (ignore-errors (make-process :file-handler t))) 4642 (ignore-errors (make-process :file-handler t)))
4641 `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) () 4643 `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) ()
4642 ,docstring 4644 ,docstring
@@ -4829,6 +4831,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'."
4829 4831
4830 ;; Process connection type. 4832 ;; Process connection type.
4831 (when (and (tramp--test-sh-p) 4833 (when (and (tramp--test-sh-p)
4834 (not (tramp-direct-async-process-p))
4832 ;; `executable-find' has changed the number of 4835 ;; `executable-find' has changed the number of
4833 ;; parameters in Emacs 27.1, so we use `apply' for 4836 ;; parameters in Emacs 27.1, so we use `apply' for
4834 ;; older Emacsen. 4837 ;; older Emacsen.