summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2019-04-19 13:03:40 +0200
committerPhilipp Stephani <phst@google.com>2019-04-19 14:03:16 +0200
commit5c5e309527e6b582e2c04b83e7af45f3144863ac (patch)
tree0a19797e7e67663915d95b72ea5452c80b5dc552 /test
parent3ff7d7321ac62b1eb896e8a032e7f75f5a6b8146 (diff)
downloademacs-5c5e309527e6b582e2c04b83e7af45f3144863ac.tar.gz
Remove :stop key from make-process.
This has never worked and caused issues such as Bug#30460. * src/process.c (Fmake_process): Don't accept :stop key any more. (syms_of_process): Define needed symbol 'null'. * test/src/process-tests.el (make-process/stop): New unit test. * doc/lispref/processes.texi (Asynchronous Processes): Remove :stop key from manual.
Diffstat (limited to 'test')
-rw-r--r--test/src/process-tests.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 0bb7ebe50a8..b853f77946d 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -284,5 +284,14 @@ file name handler."
(put #'process-tests--file-handler 'operations
'(unhandled-file-name-directory make-process))
+(ert-deftest make-process/stop ()
+ "Check that `make-process' doesn't accept a `:stop' key.
+See Bug#30460."
+ (should-error
+ (make-process :name "test"
+ :command (list (expand-file-name invocation-name
+ invocation-directory))
+ :stop t)))
+
(provide 'process-tests)
;; process-tests.el ends here.