X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdebug.impure.lisp;h=b64e172275dcda35c66efbe4b43af08878953ad3;hb=39f3672f1378f66c7abdf84c6c9df5d63f8d3a6c;hp=ea5d8b7160933bee458796bce84972d1a8d35a3a;hpb=b66385e2031fc2cac17dd129df0af400beb48a22;p=sbcl.git diff --git a/tests/debug.impure.lisp b/tests/debug.impure.lisp index ea5d8b7..b64e172 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))))) @@ -172,10 +171,10 @@ (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. @@ -433,3 +432,5 @@ (loop while (sb-thread:thread-alive-p thread))) (disable-debugger) + +(write-line "/debug.impure.lisp done")