diff options
| author | Michael Albinus | 2020-10-24 13:08:31 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-10-24 13:08:31 +0200 |
| commit | 8b1ccf5e7bc734aa3d0de6e1906677699c7eb3b2 (patch) | |
| tree | 8c0226c7724710b1d2b2656edb8735449b944bf9 | |
| parent | c847d5998f588dbf3eca5ea1ec573a2d64a97607 (diff) | |
| download | emacs-8b1ccf5e7bc734aa3d0de6e1906677699c7eb3b2.tar.gz emacs-8b1ccf5e7bc734aa3d0de6e1906677699c7eb3b2.zip | |
Fix tramp-sh-handle-make-process; don't merge with master
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Accept nil
COMMAND. (Bug#44151)
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process):
Extend test.
| -rw-r--r-- | lisp/net/tramp-sh.el | 2 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 19d50fce4c5..df6720b99b7 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -2822,7 +2822,7 @@ STDERR can also be a file name." | |||
| 2822 | (signal 'wrong-type-argument (list #'stringp name))) | 2822 | (signal 'wrong-type-argument (list #'stringp name))) |
| 2823 | (unless (or (null buffer) (bufferp buffer) (stringp buffer)) | 2823 | (unless (or (null buffer) (bufferp buffer) (stringp buffer)) |
| 2824 | (signal 'wrong-type-argument (list #'stringp buffer))) | 2824 | (signal 'wrong-type-argument (list #'stringp buffer))) |
| 2825 | (unless (consp command) | 2825 | (unless (or (null command) (consp command)) |
| 2826 | (signal 'wrong-type-argument (list #'consp command))) | 2826 | (signal 'wrong-type-argument (list #'consp command))) |
| 2827 | (unless (or (null coding) | 2827 | (unless (or (null coding) |
| 2828 | (and (symbolp coding) (memq coding coding-system-list)) | 2828 | (and (symbolp coding) (memq coding coding-system-list)) |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index fb4df639e5a..cc9ccefb0df 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4283,6 +4283,21 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4283 | (should (string-match "\\`foo" (buffer-string)))) | 4283 | (should (string-match "\\`foo" (buffer-string)))) |
| 4284 | 4284 | ||
| 4285 | ;; Cleanup. | 4285 | ;; Cleanup. |
| 4286 | (ignore-errors (delete-process proc))) | ||
| 4287 | |||
| 4288 | ;; PTY. | ||
| 4289 | (unwind-protect | ||
| 4290 | (with-temp-buffer | ||
| 4291 | (if (not (tramp--test-sh-p)) | ||
| 4292 | (should-error | ||
| 4293 | (start-file-process "test4" (current-buffer) nil) | ||
| 4294 | :type 'wrong-type-argument) | ||
| 4295 | (setq proc (start-file-process "test4" (current-buffer) nil)) | ||
| 4296 | (should (processp proc)) | ||
| 4297 | (should (equal (process-status proc) 'run)) | ||
| 4298 | (should (stringp (process-tty-name proc))))) | ||
| 4299 | |||
| 4300 | ;; Cleanup. | ||
| 4286 | (ignore-errors (delete-process proc)))))) | 4301 | (ignore-errors (delete-process proc)))))) |
| 4287 | 4302 | ||
| 4288 | (ert-deftest tramp-test30-make-process () | 4303 | (ert-deftest tramp-test30-make-process () |