X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdebug.impure.lisp;h=a4c6114d3418b95959922a3b207c3d7a3113f1ed;hb=86d50ba6266c823eedd444c4e1c5a55e9dc7f46a;hp=6ffa8d34c71c03d3e9f1169a8231104de8908091;hpb=88d80e04126a9842338cd6f8bbc5e6627eaff187;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index 6ffa8d3..a4c6114 100644 --- a/tests/debug.impure.lisp +++ b/tests/debug.impure.lisp @@ -173,6 +173,19 @@ (list '(flet not-optimized)) (list '(flet test) #'not-optimized)))))) +(with-test (:name :backtrace-interrupted-condition-wait + :skipped-on '(not :sb-thread)) + (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 +373,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 +435,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 +547,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))))