X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstream.pure.lisp;h=70fc40db65cae6ff7296682eca403edc7c70ded9;hb=f1407e424f1063203af07d2e61ceef58515a4797;hp=d1f52f8ef79cd34582e1d2defb53c6ca7334c8f9;hpb=24407d11d34abdaaef6d839fd0b2665c73b0e6d5;p=sbcl.git diff --git a/tests/stream.pure.lisp b/tests/stream.pure.lisp index d1f52f8..70fc40d 100644 --- a/tests/stream.pure.lisp +++ b/tests/stream.pure.lisp @@ -73,3 +73,20 @@ (get-output-stream-string out-stream)) ;; (Before the fix, the LET* expression just signalled an error.) "a")) + +;; 0.7.12 doesn't advance current stream in concatenated streams +;; correctly when searching a stream for a char to read. +(with-input-from-string (p "") + (with-input-from-string (q "foo") + (let* ((r (make-concatenated-stream p q))) + (peek-char nil r)))) + +;; 0.7.14 and previous SBCLs don't have a working INTERACTIVE-STREAM-P +;; because it called UNIX-ISATTY, which wasn't defined. +(with-input-from-string (s "a non-interactive stream") + (assert (not (interactive-stream-p s)))) +;;; KLUDGE: Unfortunately it's hard to find a reliably interactive +;;; stream to test, since it's reasonable for these tests to be run +;;; from a script, conceivably even as something like a cron job. +;;; Ideas? +#+nil (assert (eq (interactive-stream-p *terminal-io*) t))