diff options
| author | Eli Zaretskii | 2025-08-16 13:11:19 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-08-16 13:11:19 +0300 |
| commit | 9985e71eb79624a0722b00bb2108d90b6e7ab50e (patch) | |
| tree | c77376ee939bdc145c4c2f757dd9d891a5427a05 | |
| parent | c93be71e45d4cebeb017c813426228e579e9381d (diff) | |
| download | emacs-9985e71eb79624a0722b00bb2108d90b6e7ab50e.tar.gz emacs-9985e71eb79624a0722b00bb2108d90b6e7ab50e.zip | |
; Stabilize a Windows-specific process-test
* test/src/process-tests.el (process-sentinel-interrupt-event):
Improve stability of results, and show all of the results.
| -rw-r--r-- | test/src/process-tests.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el index 641766ca7a9..5f84d9acc6d 100644 --- a/test/src/process-tests.el +++ b/test/src/process-tests.el | |||
| @@ -1026,7 +1026,7 @@ Return nil if FILENAME doesn't exist." | |||
| 1026 | (with-temp-buffer | 1026 | (with-temp-buffer |
| 1027 | (let* ((proc-buf (current-buffer)) | 1027 | (let* ((proc-buf (current-buffer)) |
| 1028 | ;; Start a new emacs process to wait idly until interrupted. | 1028 | ;; Start a new emacs process to wait idly until interrupted. |
| 1029 | (cmd "emacs -batch --eval=\"(sit-for 50000)\"") | 1029 | (cmd "emacs -Q -batch --eval=\"(sit-for 50000)\"") |
| 1030 | (proc (start-file-process-shell-command | 1030 | (proc (start-file-process-shell-command |
| 1031 | "test/process-sentinel-signal-event" proc-buf cmd)) | 1031 | "test/process-sentinel-signal-event" proc-buf cmd)) |
| 1032 | (events '())) | 1032 | (events '())) |
| @@ -1040,12 +1040,12 @@ Return nil if FILENAME doesn't exist." | |||
| 1040 | (should (equal 'run (process-status proc))) | 1040 | (should (equal 'run (process-status proc))) |
| 1041 | ;; Interrupt the sub-process and wait for it to die. | 1041 | ;; Interrupt the sub-process and wait for it to die. |
| 1042 | (interrupt-process proc) | 1042 | (interrupt-process proc) |
| 1043 | (sleep-for 2) | 1043 | (sleep-for 3) |
| 1044 | ;; Should have received SIGINT... | 1044 | ;; Should have received SIGINT... |
| 1045 | (should (equal 'signal (process-status proc))) | 1045 | (should (equal '(signal 2 ("interrupt\n")) |
| 1046 | (should (equal 2 (process-exit-status proc))) | 1046 | (list (process-status proc) |
| 1047 | ;; ...and the change description should be "interrupt". | 1047 | (process-exit-status proc) |
| 1048 | (should (equal '("interrupt\n") events))))) | 1048 | events)))))) |
| 1049 | 1049 | ||
| 1050 | (ert-deftest process-num-processors () | 1050 | (ert-deftest process-num-processors () |
| 1051 | "Sanity checks for num-processors." | 1051 | "Sanity checks for num-processors." |