mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-16 09:50:25 +00:00
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.
This commit is contained in:
parent
c847d5998f
commit
8b1ccf5e7b
@ -2822,7 +2822,7 @@ STDERR can also be a file name."
|
||||
(signal 'wrong-type-argument (list #'stringp name)))
|
||||
(unless (or (null buffer) (bufferp buffer) (stringp buffer))
|
||||
(signal 'wrong-type-argument (list #'stringp buffer)))
|
||||
(unless (consp command)
|
||||
(unless (or (null command) (consp command))
|
||||
(signal 'wrong-type-argument (list #'consp command)))
|
||||
(unless (or (null coding)
|
||||
(and (symbolp coding) (memq coding coding-system-list))
|
||||
|
@ -4282,6 +4282,21 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
|
||||
;; echoes also the sent string.
|
||||
(should (string-match "\\`foo" (buffer-string))))
|
||||
|
||||
;; Cleanup.
|
||||
(ignore-errors (delete-process proc)))
|
||||
|
||||
;; PTY.
|
||||
(unwind-protect
|
||||
(with-temp-buffer
|
||||
(if (not (tramp--test-sh-p))
|
||||
(should-error
|
||||
(start-file-process "test4" (current-buffer) nil)
|
||||
:type 'wrong-type-argument)
|
||||
(setq proc (start-file-process "test4" (current-buffer) nil))
|
||||
(should (processp proc))
|
||||
(should (equal (process-status proc) 'run))
|
||||
(should (stringp (process-tty-name proc)))))
|
||||
|
||||
;; Cleanup.
|
||||
(ignore-errors (delete-process proc))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user