diff options
| author | Tom Tromey | 2012-08-19 03:23:03 -0600 |
|---|---|---|
| committer | Tom Tromey | 2012-08-19 03:23:03 -0600 |
| commit | 5651640d578fa2efa40be4789d9fa61813ccb1fa (patch) | |
| tree | a59e33464016e88cb3f0501d6c47baf8aa5e07aa /test | |
| parent | ee1464eab19311ab7708b135bdb6eb989909e4cc (diff) | |
| download | emacs-5651640d578fa2efa40be4789d9fa61813ccb1fa.tar.gz emacs-5651640d578fa2efa40be4789d9fa61813ccb1fa.zip | |
condition variables
This implements condition variables for elisp.
This needs more tests.
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/threads.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/automated/threads.el b/test/automated/threads.el index 4c1afbdde67..ce929fc0add 100644 --- a/test/automated/threads.el +++ b/test/automated/threads.el | |||
| @@ -175,4 +175,17 @@ | |||
| 175 | (accept-process-output nil 1)) | 175 | (accept-process-output nil 1)) |
| 176 | threads-test-global))) | 176 | threads-test-global))) |
| 177 | 177 | ||
| 178 | (ert-deftest threads-condvarp () | ||
| 179 | "simple test of condition-variablep" | ||
| 180 | (should-not (condition-variablep 'hi))) | ||
| 181 | |||
| 182 | (ert-deftest threads-condvarp-2 () | ||
| 183 | "another simple test of condition-variablep" | ||
| 184 | (should (condition-variablep (make-condition-variable (make-mutex))))) | ||
| 185 | |||
| 186 | (ert-deftest threads-condvar-type () | ||
| 187 | "type-of condvar" | ||
| 188 | (should (eq (type-of (make-condition-variable (make-mutex))) | ||
| 189 | 'condition-variable))) | ||
| 190 | |||
| 178 | ;;; threads.el ends here | 191 | ;;; threads.el ends here |