X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fpprint.impure.lisp;h=2a98b0bde1df22b9711725f273d574345d265759;hb=3f01b91f6cbef8818b9200bc9c7cc81980cdd9c0;hp=9c6fceef989b2997094fc9057d778b0ebd5a7447;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/tests/pprint.impure.lisp b/tests/pprint.impure.lisp index 9c6fcee..2a98b0b 100644 --- a/tests/pprint.impure.lisp +++ b/tests/pprint.impure.lisp @@ -200,6 +200,20 @@ (assert (string= "#1=(#2=(#2# . #3=(#1# . #3#)))" (with-output-to-string (s) (write '#1=(#2=(#2# . #3=(#1# . #3#))) :stream s))))) + +;;; Printing malformed defpackage forms without errors. +(with-test (:name :pprint-defpackage) + (with-open-stream (null (make-broadcast-stream)) + (pprint '(defpackage :foo nil)) + (pprint '(defpackage :foo 42)))) + +(with-test (:name :standard-pprint-dispatch-modified) + (assert + (eq :error + (handler-case (with-standard-io-syntax + (set-pprint-dispatch 'symbol (constantly nil)) + :no-error) + (sb-int:standard-pprint-dispatch-table-modified-error () + :error))))) ;;; success -(quit :unix-status 104)