X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstep.impure.lisp;h=00aa7e091f8e636ed80086e6c90e0f8df0abe009;hb=e829d0de78c10d779de6bc5ace2ab3354e6236ec;hp=afa328198723e9f4d429f554146b554a07653499;hpb=1a3143cca7d6678c094b6bacc485e8531808ea59;p=sbcl.git diff --git a/tests/step.impure.lisp b/tests/step.impure.lisp index afa3281..00aa7e0 100644 --- a/tests/step.impure.lisp +++ b/tests/step.impure.lisp @@ -26,12 +26,14 @@ (defvar *cerror-called* nil) +(define-condition cerror-break (error) ()) + (defun fib-break (x) (declare (optimize debug)) (if (< x 2) (progn (unless *cerror-called* - (cerror "a" "b") + (cerror "a" 'cerror-break) (setf *cerror-called* t)) 1) (+ (fib-break (1- x)) @@ -144,7 +146,7 @@ results) (invoke-restart 'step-into)))))) (setf *cerror-called* nil) - (handler-bind ((error + (handler-bind ((cerror-break (lambda (c) (sb-impl::enable-stepping) (invoke-restart 'continue))))