aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2018-08-31 11:45:37 +0200
committerMichael Albinus2018-08-31 11:45:37 +0200
commitee2509bd828070ae5d17fcc766f81715050ba673 (patch)
tree89ebdb3af0ef10d1344b01323dd832a776d414f3 /test
parent6f3cf12e4fb6c810ebf37c8819dc2ee39b02199e (diff)
downloademacs-ee2509bd828070ae5d17fcc766f81715050ba673.tar.gz
emacs-ee2509bd828070ae5d17fcc766f81715050ba673.zip
Mark thread-alive-p as obsolete
* etc/NEWS (thread-alive-p): * lisp/emacs-lisp/thread.el (thread-alive-p): Mark it as obsolete. * test/src/thread-tests.el (threads-join-error) (threads-signal-main-thread): Use `thread-live-p'.
Diffstat (limited to 'test')
-rw-r--r--test/src/thread-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index a87eb3e1591..109e71128ab 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -116,7 +116,7 @@
116 :tags '(:unstable) 116 :tags '(:unstable)
117 (skip-unless (featurep 'threads)) 117 (skip-unless (featurep 'threads))
118 (let ((thread (make-thread #'threads-call-error))) 118 (let ((thread (make-thread #'threads-call-error)))
119 (while (thread-alive-p thread) 119 (while (thread-live-p thread)
120 (thread-yield)) 120 (thread-yield))
121 (should-error (thread-join thread)))) 121 (should-error (thread-join thread))))
122 122
@@ -332,7 +332,7 @@
332 (erase-buffer)) 332 (erase-buffer))
333 (let ((thread 333 (let ((thread
334 (make-thread #'(lambda () (thread-signal main-thread 'error nil))))) 334 (make-thread #'(lambda () (thread-signal main-thread 'error nil)))))
335 (while (thread-alive-p thread) 335 (while (thread-live-p thread)
336 (thread-yield)) 336 (thread-yield))
337 (read-event nil nil 0.1) 337 (read-event nil nil 0.1)
338 ;; No error has been raised, which is part of the test. 338 ;; No error has been raised, which is part of the test.