X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fprint.impure.lisp;h=d1ccc0169e7b49cd0e78820b59d99d2e7d8f2008;hb=14e646e1fe2525f3375a0fa2b3770473ebf97e93;hp=4f1b3f54431a4df7ffae81b038cb5b1d6c58df10;hpb=2a2e392928449850fb531af1191f83f61e736c97;p=sbcl.git diff --git a/tests/print.impure.lisp b/tests/print.impure.lisp index 4f1b3f5..d1ccc01 100644 --- a/tests/print.impure.lisp +++ b/tests/print.impure.lisp @@ -433,4 +433,17 @@ (assert (string= (format nil "~R" (expt 10 63)) "one vigintillion")) (assert (string= (format nil "~:R" (expt 10 63)) "one vigintillionth")) +;;; too-clever cacheing for PRINT-OBJECT resulted in a bogus method +;;; for printing RESTART objects. Check also CONTROL-STACK-EXHAUSTED +;;; and HEAP-EXHAUSTED-ERROR. +(let ((result (with-output-to-string (*standard-output*) + (princ (find-restart 'abort))))) + (assert (string/= result "#<" :end1 2))) +(let ((result (with-output-to-string (*standard-output*) + (princ (make-condition 'sb-kernel::control-stack-exhausted))))) + (assert (string/= result "#<" :end1 2))) +(let ((result (with-output-to-string (*standard-output*) + (princ (make-condition 'sb-kernel::heap-exhausted-error))))) + (assert (string/= result "#<" :end1 2))) + ;;; success