X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure.lisp;h=d548cffceff945be14b47ebc0dd474afce77004d;hb=30b24d582dd8620b91c798e38a8aa9a6b999b4be;hp=3dc1d93c5a52f7768f2a0dff7cfe07a903e7e4b3;hpb=e66288cd5588b336b79a7e19f1c884e4e3263d53;p=sbcl.git diff --git a/tests/clos.impure.lisp b/tests/clos.impure.lisp index 3dc1d93..d548cff 100644 --- a/tests/clos.impure.lisp +++ b/tests/clos.impure.lisp @@ -1619,5 +1619,25 @@ (handler-bind ((warning #'error)) (assert (= 123 (slot-value (provoke-ctor-default-initarg-problem) 'slot)))) +;;;; discriminating net on streams used to generate code deletion notes on +;;;; first call +(defgeneric stream-fd (stream direction)) +(defmethod stream-fd ((stream sb-sys:fd-stream) direction) + (declare (ignore direction)) + (sb-sys:fd-stream-fd stream)) +(defmethod stream-fd ((stream synonym-stream) direction) + (stream-fd (symbol-value (synonym-stream-symbol stream)) direction)) +(defmethod stream-fd ((stream two-way-stream) direction) + (ecase direction + (:input + (stream-fd + (two-way-stream-input-stream stream) direction)) + (:output + (stream-fd + (two-way-stream-output-stream stream) direction)))) +(with-test (:name (:discriminating-name :code-deletion-note)) + (handler-bind ((compiler-note #'error)) + (stream-fd sb-sys:*stdin* :output) + (stream-fd sb-sys:*stdin* :output))) ;;;; success