diff options
| author | Tom Tromey | 2012-08-27 10:12:29 -0600 |
|---|---|---|
| committer | Tom Tromey | 2012-08-27 10:12:29 -0600 |
| commit | 587dd92ea0814eafe4064be69d6d9e0fa8dbac1b (patch) | |
| tree | 73722612c54a436d906be9d870f9bb1adc4df52c /test | |
| parent | 599d4a99403a8ea40144ca94dbf9f99fb1a038ee (diff) | |
| download | emacs-587dd92ea0814eafe4064be69d6d9e0fa8dbac1b.tar.gz emacs-587dd92ea0814eafe4064be69d6d9e0fa8dbac1b.zip | |
cannot thread-join the current thread
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/threads.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/automated/threads.el b/test/automated/threads.el index b1c2af59600..db6aa41d63a 100644 --- a/test/automated/threads.el +++ b/test/automated/threads.el | |||
| @@ -70,6 +70,10 @@ | |||
| 70 | (and threads-test-global | 70 | (and threads-test-global |
| 71 | (not (thread-alive-p thread))))))) | 71 | (not (thread-alive-p thread))))))) |
| 72 | 72 | ||
| 73 | (ert-deftest threads-join-self () | ||
| 74 | "cannot thread-join the current thread" | ||
| 75 | (should-error (thread-join (current-thread)))) | ||
| 76 | |||
| 73 | (defvar threads-test-binding nil) | 77 | (defvar threads-test-binding nil) |
| 74 | 78 | ||
| 75 | (defun threads-test-thread2 () | 79 | (defun threads-test-thread2 () |