bldc/tests/test_block_unblock_2.lisp

14 lines
262 B
Common Lisp

(defun proc1 (pid)
(progn
(block)
(send pid 'im-done)))
(def id (spawn-trap proc1 (self)))
(unblock-error id)
(check (recv ((exit-error (? tid) (? e)) 't)
((exit-ok (? tid) (? r)) 'nil)
(im-done 'this-can-not-happen)))