aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-03-29 12:31:24 +0100
committerAndrea Corallo2020-03-29 12:31:24 +0100
commit00ee320a620704ae12a1e2104c2d08bf8bbdf0c9 (patch)
tree498c59219b572c89e10f9521b54c98896cb52ca9 /test/src
parent530faee2752c7b316fa21f2ac4d1266d3e7a38e6 (diff)
parent76b3bd8cbb9a0a01941d9c1766c054960e4bfd97 (diff)
downloademacs-00ee320a620704ae12a1e2104c2d08bf8bbdf0c9.tar.gz
emacs-00ee320a620704ae12a1e2104c2d08bf8bbdf0c9.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-tests.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index 48d2e86a605..6851b890451 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -424,4 +424,21 @@ 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 (skip-unless (not (eq system-type 'windows-nt))) ; FIXME!
430 (with-temp-buffer
431 (let ((process (make-pipe-process :name "module/async-pipe"
432 :buffer (current-buffer)
433 :coding 'utf-8-unix
434 :noquery t)))
435 (unwind-protect
436 (progn
437 (mod-test-async-pipe process)
438 (should (accept-process-output process 1))
439 ;; The string below must be identical to what
440 ;; mod-test.c:write_to_pipe produces.
441 (should (equal (buffer-string) "data from thread")))
442 (delete-process process)))))
443
427;;; emacs-module-tests.el ends here 444;;; emacs-module-tests.el ends here