From: Gabor M. <me...@us...> - 2009-03-22 21:44:15
|
Update of /cvsroot/sbcl/sbcl/tests In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10535/tests Modified Files: threads.impure.lisp timer.impure.lisp Log Message: 1.0.26.15: interrupt.c refactoring - check that all or none of the deferrable signals are blocked - make passing NULL for sigset in the right context mean the current sigmask: there is only a single block_signals() function that can performs sigset arithmetic or change the current mask. - print pc and sp on memory faults to ease debugging Index: threads.impure.lisp =================================================================== RCS file: /cvsroot/sbcl/sbcl/tests/threads.impure.lisp,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -r1.66 -r1.67 --- threads.impure.lisp 16 Mar 2009 15:59:03 -0000 1.66 +++ threads.impure.lisp 22 Mar 2009 21:44:07 -0000 1.67 @@ -43,28 +43,30 @@ mutex)) (sb-alien:define-alien-routine "check_deferrables_blocked_or_lose" - void) + void + (where sb-alien:unsigned-long)) (sb-alien:define-alien-routine "check_deferrables_unblocked_or_lose" - void) + void + (where sb-alien:unsigned-long)) (with-test (:name (:interrupt-thread :deferrables-blocked)) (sb-thread:interrupt-thread sb-thread:*current-thread* (lambda () - (check-deferrables-blocked-or-lose)))) + (check-deferrables-blocked-or-lose 0)))) (with-test (:name (:interrupt-thread :deferrables-unblocked)) (sb-thread:interrupt-thread sb-thread:*current-thread* (lambda () (with-interrupts - (check-deferrables-unblocked-or-lose))))) + (check-deferrables-unblocked-or-lose 0))))) (with-test (:name (:interrupt-thread :nlx)) (catch 'xxx (sb-thread:interrupt-thread sb-thread:*current-thread* (lambda () - (check-deferrables-blocked-or-lose) + (check-deferrables-blocked-or-lose 0) (throw 'xxx nil)))) - (check-deferrables-unblocked-or-lose)) + (check-deferrables-unblocked-or-lose 0)) #-sb-thread (sb-ext:quit :unix-status 104) @@ -75,9 +77,9 @@ (sb-thread::get-spinlock spinlock) (sb-thread:interrupt-thread thread (lambda () - (check-deferrables-blocked-or-lose) + (check-deferrables-blocked-or-lose 0) (sb-thread::get-spinlock spinlock) - (check-deferrables-unblocked-or-lose) + (check-deferrables-unblocked-or-lose 0) (sb-ext:quit))) (sleep 1) (sb-thread::release-spinlock spinlock))) Index: timer.impure.lisp =================================================================== RCS file: /cvsroot/sbcl/sbcl/tests/timer.impure.lisp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- timer.impure.lisp 1 Mar 2009 15:57:09 -0000 1.15 +++ timer.impure.lisp 22 Mar 2009 21:44:07 -0000 1.16 @@ -14,9 +14,11 @@ (use-package :test-util) (sb-alien:define-alien-routine "check_deferrables_blocked_or_lose" - void) + void + (where sb-alien:unsigned-long)) (sb-alien:define-alien-routine "check_deferrables_unblocked_or_lose" - void) + void + (where sb-alien:unsigned-long)) (defun make-limited-timer (fn n &rest args) (let (timer) @@ -49,26 +51,26 @@ (with-test (:name (:timer :deferrables-blocked)) (make-and-schedule-and-wait (lambda () - (check-deferrables-blocked-or-lose)) + (check-deferrables-blocked-or-lose 0)) (random 0.1)) - (check-deferrables-unblocked-or-lose)) + (check-deferrables-unblocked-or-lose 0)) (with-test (:name (:timer :deferrables-unblocked)) (make-and-schedule-and-wait (lambda () (sb-sys:with-interrupts - (check-deferrables-unblocked-or-lose))) + (check-deferrables-unblocked-or-lose 0))) (random 0.1)) - (check-deferrables-unblocked-or-lose)) + (check-deferrables-unblocked-or-lose 0)) #-win32 (with-test (:name (:timer :deferrables-unblocked :unwind)) (catch 'xxx (make-and-schedule-and-wait (lambda () - (check-deferrables-blocked-or-lose) + (check-deferrables-blocked-or-lose 0) (throw 'xxx nil)) (random 0.1)) (sleep 1)) - (check-deferrables-unblocked-or-lose)) + (check-deferrables-unblocked-or-lose 0)) (defmacro raises-timeout-p (&body body) `(handler-case (progn (progn ,@body) nil) |