diff options
| author | Michael Albinus | 2023-09-25 12:59:52 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-09-25 12:59:52 +0200 |
| commit | 34550ea8ce4b5e306a537abd9457bba5c72fca94 (patch) | |
| tree | d8007c015a77d32884c4a9bb251470fed2eedd12 /test | |
| parent | 4776d90c31b3d5bc4117ca7ecde95444adf402ac (diff) | |
| download | emacs-34550ea8ce4b5e306a537abd9457bba5c72fca94.tar.gz emacs-34550ea8ce4b5e306a537abd9457bba5c72fca94.zip | |
Improve Emacs 30 compatibility in tramp-tests.el (don't merge)
* test/lisp/net/tramp-tests.el (tramp--test-deftest-direct-async-process)
(tramp-test30-make-process): Improve Emacs 30 compatibility.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 3c2ec9275c6..24f17c2cf74 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -5313,7 +5313,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'." | |||
| 5313 | ;; `make-process' supports file name handlers since Emacs 27. We | 5313 | ;; `make-process' supports file name handlers since Emacs 27. We |
| 5314 | ;; cannot use `tramp--test-always' during compilation of the macro. | 5314 | ;; cannot use `tramp--test-always' during compilation of the macro. |
| 5315 | (when (let ((file-name-handler-alist '(("" . (lambda (&rest _) t))))) | 5315 | (when (let ((file-name-handler-alist '(("" . (lambda (&rest _) t))))) |
| 5316 | (ignore-errors (make-process :file-handler t))) | 5316 | (ignore-errors (make-process :name "" :command "" :file-handler t))) |
| 5317 | `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) () | 5317 | `(ert-deftest ,(intern (concat (symbol-name test) "-direct-async")) () |
| 5318 | ;; This is the docstring. However, it must be expanded to a | 5318 | ;; This is the docstring. However, it must be expanded to a |
| 5319 | ;; string inside the macro. No idea. | 5319 | ;; string inside the macro. No idea. |
| @@ -5354,7 +5354,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'." | |||
| 5354 | (let ((default-directory ert-remote-temporary-file-directory) | 5354 | (let ((default-directory ert-remote-temporary-file-directory) |
| 5355 | (tmp-name (tramp--test-make-temp-name nil quoted)) | 5355 | (tmp-name (tramp--test-make-temp-name nil quoted)) |
| 5356 | kill-buffer-query-functions command proc) | 5356 | kill-buffer-query-functions command proc) |
| 5357 | (with-no-warnings (should-not (make-process))) | 5357 | (should-not (apply #'make-process nil)) ; Use `apply' to avoid warnings. |
| 5358 | 5358 | ||
| 5359 | ;; Simple process. | 5359 | ;; Simple process. |
| 5360 | (unwind-protect | 5360 | (unwind-protect |