diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/process-tests.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el index 34309a5817d..7d355602297 100644 --- a/test/src/process-tests.el +++ b/test/src/process-tests.el | |||
| @@ -162,5 +162,24 @@ | |||
| 162 | (error nil)))) | 162 | (error nil)))) |
| 163 | (should (equal path samepath)))) | 163 | (should (equal path samepath)))) |
| 164 | 164 | ||
| 165 | (ert-deftest make-process/noquery-stderr () | ||
| 166 | "Checks that Bug#30031 is fixed." | ||
| 167 | (skip-unless (executable-find "sleep")) | ||
| 168 | (with-temp-buffer | ||
| 169 | (let* ((previous-processes (process-list)) | ||
| 170 | (process (make-process :name "sleep" | ||
| 171 | :command '("sleep" "1h") | ||
| 172 | :noquery t | ||
| 173 | :connection-type 'pipe | ||
| 174 | :stderr (current-buffer)))) | ||
| 175 | (unwind-protect | ||
| 176 | (let ((new-processes (cl-set-difference (process-list) | ||
| 177 | previous-processes | ||
| 178 | :test #'eq))) | ||
| 179 | (should new-processes) | ||
| 180 | (dolist (process new-processes) | ||
| 181 | (should-not (process-query-on-exit-flag process)))) | ||
| 182 | (kill-process process))))) | ||
| 183 | |||
| 165 | (provide 'process-tests) | 184 | (provide 'process-tests) |
| 166 | ;; process-tests.el ends here. | 185 | ;; process-tests.el ends here. |