diff options
| author | Jim Porter | 2022-07-19 21:36:54 -0700 |
|---|---|---|
| committer | Jim Porter | 2022-08-05 17:58:54 -0700 |
| commit | 4e59830bc0ab17cdbd85748b133c97837bed99e3 (patch) | |
| tree | 1fc29e2e33f71d60915c2f15e52a97dd416773ed /test/src | |
| parent | d7b89ea4077d4fe677ba0577245328819ee79cdc (diff) | |
| download | emacs-4e59830bc0ab17cdbd85748b133c97837bed99e3.tar.gz emacs-4e59830bc0ab17cdbd85748b133c97837bed99e3.zip | |
Add STREAM argument to 'process-tty-name'
* src/process.c (process-tty-name): Add STREAM argument.
* lisp/eshell/esh-io.el (eshell-close-target): Only call
'process-send-eof' once if the process's stdin is a pipe.
* test/src/process-tests.el (make-process/test-connection-type): Check
behavior of 'process-tty-name'.
* doc/lispref/processes.texi (Process Information): Document the new
argument.
* etc/NEWS: Announce this change.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/process-tests.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el index b801563feb7..db8a5044783 100644 --- a/test/src/process-tests.el +++ b/test/src/process-tests.el | |||
| @@ -294,6 +294,9 @@ should be a TTY, respectively." | |||
| 294 | "if [ -t 2 ]; then echo stderr; fi")) | 294 | "if [ -t 2 ]; then echo stderr; fi")) |
| 295 | :buffer stdout-buffer | 295 | :buffer stdout-buffer |
| 296 | args))) | 296 | args))) |
| 297 | (should (eq (and (process-tty-name proc 'stdin) t) (nth 0 ttys))) | ||
| 298 | (should (eq (and (process-tty-name proc 'stdout) t) (nth 1 ttys))) | ||
| 299 | (should (eq (and (process-tty-name proc 'stderr) t) (nth 2 ttys))) | ||
| 297 | (process-test-wait-for-sentinel proc 0) | 300 | (process-test-wait-for-sentinel proc 0) |
| 298 | (should (equal (with-current-buffer stdout-buffer (buffer-string)) | 301 | (should (equal (with-current-buffer stdout-buffer (buffer-string)) |
| 299 | expected-output)))) | 302 | expected-output)))) |