aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTom Tromey2012-08-19 03:31:57 -0600
committerTom Tromey2012-08-19 03:31:57 -0600
commit1fb339bccd65db50adc2ad7f7290099808fc439d (patch)
tree90cc4f1b9b4bf17f09031320825267232fa43143 /test
parent9dad5e59e30c1b0d1047838048510f59552be492 (diff)
downloademacs-1fb339bccd65db50adc2ad7f7290099808fc439d.tar.gz
emacs-1fb339bccd65db50adc2ad7f7290099808fc439d.zip
add condition-mutex and condition-name
Diffstat (limited to 'test')
-rw-r--r--test/automated/threads.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/automated/threads.el b/test/automated/threads.el
index ce929fc0add..87e5eec218f 100644
--- a/test/automated/threads.el
+++ b/test/automated/threads.el
@@ -188,4 +188,22 @@
188 (should (eq (type-of (make-condition-variable (make-mutex))) 188 (should (eq (type-of (make-condition-variable (make-mutex)))
189 'condition-variable))) 189 'condition-variable)))
190 190
191(ert-deftest threads-condvar-mutex ()
192 "simple test of condition-mutex"
193 (should
194 (let ((m (make-mutex)))
195 (eq m (condition-mutex (make-condition-variable m))))))
196
197(ert-deftest threads-condvar-name ()
198 "simple test of condition-name"
199 (should
200 (eq nil (condition-name (make-condition-variable (make-mutex))))))
201
202(ert-deftest threads-condvar-name-2 ()
203 "another simple test of condition-name"
204 (should
205 (string= "hi bob"
206 (condition-name (make-condition-variable (make-mutex)
207 "hi bob")))))
208
191;;; threads.el ends here 209;;; threads.el ends here