X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdebug.impure.lisp;h=b9709f2b5cb792e71363592da45ce7172df1d0a8;hb=22a6702974b7d6ff4e8f2b3b7b5ff446fc632de0;hp=a945291b60cb0aec3f127916002fe01c2cd99460;hpb=9f29c03145c7fdefc5f54939d67ee8e00cd85f14;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index a945291..b9709f2 100644 --- a/tests/debug.impure.lisp +++ b/tests/debug.impure.lisp @@ -190,7 +190,10 @@ (list '(flet test) #'not-optimized)))))) (with-test (:name (:throw :no-such-tag) - :fails-on '(or (and :x86 :linux) (and :x86 :freebsd) :alpha :mips)) + :fails-on '(or + (and :x86 (or :linux :freebsd sunos)) + :alpha + :mips)) (progn (defun throw-test () (throw 'no-such-tag t)) @@ -233,7 +236,7 @@ ;;; FIXME: This test really should be broken into smaller pieces (with-test (:name (:backtrace :misc) - :fails-on '(and :x86 :linux)) + :fails-on '(and :x86 (or :linux :sunos))) (macrolet ((with-details (bool &body body) `(let ((sb-debug:*show-entry-point-details* ,bool)) ,@body))) @@ -337,6 +340,11 @@ (defun trace-this () 'ok) +(defun trace-fact (n) + (if (zerop n) + 1 + (* n (trace-fact (1- n))))) + (let ((out (with-output-to-string (*trace-output*) (trace trace-this) (assert (eq 'ok (trace-this))) @@ -348,9 +356,9 @@ ;;; This is not a WITH-TEST :FAILS-ON PPC DARWIN since there are ;;; suspicions that the breakpoint trace might corrupt the whole image ;;; on that platform. -#-(and ppc darwin) +#-(and (or ppc x86) darwin) (with-test (:name (trace :encapsulate nil) - :fails-on '(or ppc sparc)) + :fails-on '(or :ppc :sparc :mips)) (let ((out (with-output-to-string (*trace-output*) (trace trace-this :encapsulate nil) (assert (eq 'ok (trace-this))) @@ -358,6 +366,17 @@ (assert (search "TRACE-THIS" out)) (assert (search "returned OK" out)))) +#-(and (or ppc x86) darwin) +(with-test (:name (trace-recursive :encapsulate nil) + :fails-on '(or :ppc :sparc :mips)) + (let ((out (with-output-to-string (*trace-output*) + (trace trace-fact :encapsulate nil) + (assert (= 120 (trace-fact 5))) + (untrace)))) + (assert (search "TRACE-FACT" out)) + (assert (search "returned 1" out)) + (assert (search "returned 120" out)))) + ;;;; test infinite error protection (defmacro nest-errors (n-levels error-form)