X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdebug.impure.lisp;h=8ba4e914e0fa9e200e4b892459c1d1cc038c2f8e;hb=aa8cdb795d6bb551aaecb6db38d5ef6571c698ed;hp=7be8b14a5f91b404813921a1fba43c2c9419a372;hpb=ef43bf713ac67d3acf4727a5111567e70675df44;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index 7be8b14..8ba4e91 100644 --- a/tests/debug.impure.lisp +++ b/tests/debug.impure.lisp @@ -165,7 +165,7 @@ ;; the presence of the IR1 stepper instrumentation (and ;; is thus again failing now that the instrumentation is ;; no more). - :fails-on '(or :x86 :x86-64 :alpha :mips)) + :fails-on '(or :x86 :x86-64 :alpha :mips :ppc)) (assert (verify-backtrace (lambda () (test #'not-optimized)) (list *undefined-function-frame* @@ -207,8 +207,13 @@ (with-test (:name (:throw :no-such-tag) :fails-on '(or + (and :x86 :openbsd) (and :x86 :sunos) + (and :x86 :darwin) + (and :x86 :linux) (and :x86-64 :darwin) + (and :x86-64 :linux) + (and :x86-64 :openbsd) (and :sparc :linux) :alpha :mips)) @@ -256,6 +261,16 @@ `(let ((sb-debug:*show-entry-point-details* ,bool)) ,@body)) +(defun bug-354 (x) + (error "XEPs in backtraces: ~S" x)) + +(with-test (:name :bug-354) + (with-details t + (assert (not (verify-backtrace (lambda () (bug-354 354)) + '((bug-354 &rest) + ((sb-c::tl-xep bug-354) &rest)))))) + (assert (verify-backtrace (lambda () (bug-354 354)) '((bug-354 354))))) + ;;; FIXME: This test really should be broken into smaller pieces (with-test (:name (:backtrace :misc) :fails-on '(or (and :x86 (or :sunos)) (and :x86-64 :darwin))) @@ -400,6 +415,11 @@ (assert (search "returned 1" out)) (assert (search "returned 120" out)))) +(with-test (:name :bug-414) + (handler-bind ((warning #'error)) + (load (compile-file "bug-414.lisp")) + (disassemble 'bug-414))) + ;;;; test infinite error protection (defmacro nest-errors (n-levels error-form)