diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index 48d2e86a605..1f91795e1e6 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el | |||
| @@ -424,4 +424,18 @@ See Bug#36226." | |||
| 424 | ;; but at least one. | 424 | ;; but at least one. |
| 425 | (should (> valid-after valid-before))))) | 425 | (should (> valid-after valid-before))))) |
| 426 | 426 | ||
| 427 | (ert-deftest module/async-pipe () | ||
| 428 | "Check that writing data from another thread works." | ||
| 429 | (with-temp-buffer | ||
| 430 | (let ((process (make-pipe-process :name "module/async-pipe" | ||
| 431 | :buffer (current-buffer) | ||
| 432 | :coding 'utf-8-unix | ||
| 433 | :noquery t))) | ||
| 434 | (unwind-protect | ||
| 435 | (progn | ||
| 436 | (mod-test-async-pipe process) | ||
| 437 | (should (accept-process-output process 1)) | ||
| 438 | (should (equal (buffer-string) "data from thread"))) | ||
| 439 | (delete-process process))))) | ||
| 440 | |||
| 427 | ;;; emacs-module-tests.el ends here | 441 | ;;; emacs-module-tests.el ends here |