X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fdebug.impure.lisp;h=ec0719b034628585d01253b05fd7e84241eb7a46;hb=e7b2c507c364da9395ad1f9591210dac44f24afd;hp=6ffa8d34c71c03d3e9f1169a8231104de8908091;hpb=88d80e04126a9842338cd6f8bbc5e6627eaff187;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index 6ffa8d3..ec0719b 100644 --- a/tests/debug.impure.lisp +++ b/tests/debug.impure.lisp @@ -173,6 +173,18 @@ (list '(flet not-optimized)) (list '(flet test) #'not-optimized)))))) +(with-test (:name :interrupted-syscall) + (let ((m (sb-thread:make-mutex)) + (q (sb-thread:make-waitqueue))) + (assert (verify-backtrace + (lambda () + (sb-thread:with-mutex (m) + (handler-bind ((timeout (lambda (c) + (error "foo")))) + (with-timeout 0.1 + (sb-thread:condition-wait q m))))) + `((sb-thread:condition-wait ,q ,m)))))) + ;;; Division by zero was a common error on PPC. It depended on the ;;; return function either being before INTEGER-/-INTEGER in memory, ;;; or more than MOST-POSITIVE-FIXNUM bytes ahead. It also depends on @@ -360,8 +372,8 @@ (defvar *compile-nil-non-tc* (compile nil '(lambda (y) (cons (funcall *compile-nil-error* y) nil)))) (with-test (:name (:compile nil)) (assert (verify-backtrace (lambda () (funcall *compile-nil-non-tc* 13)) - '(((lambda (x)) 13) - ((lambda (y)) 13))))) + '(((lambda (x)) 13) + ((lambda (y)) 13))))) (with-test (:name :clos-slot-typecheckfun-named) (assert @@ -422,9 +434,9 @@ (with-test (:name (trace :simple)) (let ((out (with-output-to-string (*trace-output*) - (trace trace-this) - (assert (eq 'ok (trace-this))) - (untrace)))) + (trace trace-this) + (assert (eq 'ok (trace-this))) + (untrace)))) (assert (search "TRACE-THIS" out)) (assert (search "returned OK" out)))) @@ -534,7 +546,7 @@ (test-inifinite-error-protection)) (with-test (:name (infinite-error-protection :thread) - :skipped-on '(not :sb-thread)) + :skipped-on '(not :sb-thread)) (enable-debugger) (let ((thread (sb-thread:make-thread #'test-inifinite-error-protection))) (loop while (sb-thread:thread-alive-p thread))))