X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdebug.impure.lisp;h=9109fa71c80efa09aa68da199a93d8fde8628cc0;hb=7e24349c17298e2959e853ea411b5f65d9f7f332;hp=f01b9b34b2ac62a10b02ffecb4a7fe56bbdd85c8;hpb=970dd272dc84f7420252eadb4829cc193f795716;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index f01b9b3..9109fa7 100644 --- a/tests/debug.impure.lisp +++ b/tests/debug.impure.lisp @@ -119,12 +119,11 @@ ;; Make sure the backtrace isn't stunted in ;; any way. (Depends on running in the main - ;; thread.) - (let ((end (last backtrace 2))) + ;; thread.) FIXME: On Windows we get two + ;; extra foreign frames below regular frames. + (let ((end (last backtrace #-win32 2 #+win32 4))) (unless (equal (caar end) - (if *show-entry-point-details* - '(sb-c::tl-xep sb-impl::toplevel-init) - 'sb-impl::toplevel-init)) + 'sb-impl::toplevel-init) (print (list :backtrace-stunted (caar end))) (setf result nil))) (return-from outer-handler))))) @@ -151,7 +150,7 @@ (funcall fun))) (with-test (:name (:undefined-function :bug-346) - :fails-on '(or :alpha)) ; bug 346 + :fails-on '(or :alpha (and :x86-64 :freebsd))) ; bug 346 (assert (verify-backtrace (lambda () (test #'optimized)) (list *undefined-function-frame* @@ -159,18 +158,23 @@ ;; bug 353: This test fails at least most of the time for x86/linux ;; ca. 0.8.20.16. -- WHN - (with-test (:name (:undefined-function :bug-356) - :fails-on '(or (and :x86 :linux) :alpha)) + (with-test (:name (:undefined-function :bug-353) + ;; This used to have fewer :fails-on features pre-0.9.16.38, + ;; but it turns out that the bug was just being masked by + ;; 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)) (assert (verify-backtrace (lambda () (test #'not-optimized)) (list *undefined-function-frame* (list '(flet not-optimized)) (list '(flet test) #'not-optimized)))))) -;;; Division by zero was a common error on PPC. It depended on the +;;; 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 -;;; INTEGER-/-INTEGER calling SIGNED-TRUNCATE. I believe Raymond Toy +;;; or more than MOST-POSITIVE-FIXNUM bytes ahead. It also depends on +;;; INTEGER-/-INTEGER calling SIGNED-TRUNCATE. I believe Raymond Toy ;;; says that the Sparc backend (at least for CMUCL) inlines this, so ;;; if SBCL does the same this test is probably not good for the ;;; Sparc. @@ -202,7 +206,7 @@ (with-test (:name (:throw :no-such-tag) :fails-on '(or - (and :x86 (or :linux :freebsd sunos)) + (and :x86 (or :linux sunos)) :alpha :mips)) (progn @@ -367,7 +371,7 @@ ;;; 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 (or ppc x86) darwin) +#-(and (or ppc x86 x86-64) darwin) (with-test (:name (trace :encapsulate nil) :fails-on '(or :ppc :sparc :mips)) (let ((out (with-output-to-string (*trace-output*) @@ -377,7 +381,7 @@ (assert (search "TRACE-THIS" out)) (assert (search "returned OK" out)))) -#-(and (or ppc x86) darwin) +#-(and (or ppc x86 x86-64) darwin) (with-test (:name (trace-recursive :encapsulate nil) :fails-on '(or :ppc :sparc :mips)) (let ((out (with-output-to-string (*trace-output*) @@ -428,3 +432,5 @@ (loop while (sb-thread:thread-alive-p thread))) (disable-debugger) + +(write-line "/debug.impure.lisp done")