X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.impure.lisp;h=dd2544c6d5a5e867ca69c57d050a6693021ac3a2;hb=da8cb4801a3ab35070f380e22aea3d260f9df8aa;hp=24cd6056e75d698d50c8814a6e5297ed12a7f698;hpb=776a2f1275624352bbba37b03dabea03ec13a9e5;p=sbcl.git diff --git a/tests/threads.impure.lisp b/tests/threads.impure.lisp index 24cd605..dd2544c 100644 --- a/tests/threads.impure.lisp +++ b/tests/threads.impure.lisp @@ -16,6 +16,8 @@ (use-package :test-util) (use-package "ASSERTOID") +(setf sb-unix::*on-dangerous-select* :error) + (defun wait-for-threads (threads) (mapc (lambda (thread) (sb-thread:join-thread thread :default nil)) threads) (assert (not (some #'sb-thread:thread-alive-p threads)))) @@ -105,7 +107,7 @@ :search t) (sb-alien:load-shared-object "threads-foreign.so") (sb-alien:define-alien-routine loop-forever sb-alien:void) - +(delete-file "threads-foreign.c") ;;; elementary "can we get a lock and release it again" (let ((l (make-mutex :name "foo")) @@ -489,6 +491,7 @@ (format t "~&thread startup sigmask test done~%") +;; FIXME: What is this supposed to test? (sb-debug::enable-debugger) (let* ((main-thread *current-thread*) (interruptor-thread @@ -496,7 +499,8 @@ (sleep 2) (interrupt-thread main-thread #'break) (sleep 2) - (interrupt-thread main-thread #'continue))))) + (interrupt-thread main-thread #'continue)) + :name "interruptor"))) (with-session-lock (*session*) (sleep 3)) (loop while (thread-alive-p interruptor-thread)))