X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftimer.impure.lisp;h=4bbaf9150f392422a5f7825dde9e873317365e69;hb=14538e006c43facf52e17e452cb1164077bbafd3;hp=e4bd2d5e62f264437be686f69c07bd0141af5d2f;hpb=de19b78acd2ecb0f6caedaaedee35031f0c61c1c;p=sbcl.git diff --git a/tests/timer.impure.lisp b/tests/timer.impure.lisp index e4bd2d5..4bbaf91 100644 --- a/tests/timer.impure.lisp +++ b/tests/timer.impure.lisp @@ -114,7 +114,7 @@ (assert (zerop (length (sb-impl::%pqueue-contents sb-impl::*schedule*)))))) (with-test (:name (:timer :other-thread) :skipped-on '(not :sb-thread)) - (let* ((thread (sb-thread:make-thread (lambda () (sleep 2)))) + (let* ((thread (make-kill-thread (lambda () (sleep 2)))) (timer (make-timer (lambda () (assert (eq thread sb-thread:*current-thread*))) :thread thread))) @@ -196,7 +196,8 @@ (defun wait-for-threads (threads) (loop while (some #'sb-thread:thread-alive-p threads) do (sleep 0.01))) -(with-test (:name (:with-timeout :many-at-the-same-time) :skipped-on '(not :sb-thread)) +(with-test (:name (:with-timeout :many-at-the-same-time) + :skipped-on '(not :sb-thread)) (let ((ok t)) (let ((threads (loop repeat 10 collect (sb-thread:make-thread @@ -214,7 +215,7 @@ (assert ok)))) (with-test (:name (:with-timeout :dead-thread) :skipped-on '(not :sb-thread)) - (sb-thread:make-thread + (make-join-thread (lambda () (let ((timer (make-timer (lambda ())))) (schedule-timer timer 3) @@ -297,7 +298,11 @@ #-sb-thread (loop repeat 10 do (test)))) -(with-test (:name (:timer :threaded-stress) :skipped-on '(not :sb-thread)) +(with-test (:name (:timer :threaded-stress) + :skipped-on '(not :sb-thread) + :fails-on :win32) + #+win32 + (error "fixme") (let ((barrier (sb-thread:make-semaphore)) (goal 100)) (flet ((wait-for-goal ()