X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstream.impure.lisp;h=8ecee3a6c5a5b5c5c9bbca74b9e7a138bddc6ac0;hb=bef0d9c1274819ee3fb886401209662bace136ce;hp=4a250ac615c48bdd58e9fa15fc4151347b6da11b;hpb=f610d5d0f80db2f4e55c8385fc3ca45d92ed04ec;p=sbcl.git diff --git a/tests/stream.impure.lisp b/tests/stream.impure.lisp index 4a250ac..8ecee3a 100644 --- a/tests/stream.impure.lisp +++ b/tests/stream.impure.lisp @@ -412,4 +412,28 @@ (assert (subtypep (type-error-expected-type condition) '(unsigned-byte 8))))))) +;;; writing looong lines. takes way too long and way too much space +;;; to test on 64 bit platforms +#-#.(cl:if (cl:= sb-vm:n-word-bits 64) '(and) '(or)) +(progn + (defun write-n-chars (n stream) + (format t "~&/writing ~D chars on a single line~%" n) + (finish-output t) + (loop repeat n + do (write-char #\x stream)) + (terpri stream) + n) + + (let ((test "long-lines-write-test.tmp")) + (unwind-protect + (with-open-file (f test + :direction :output + :external-format :ascii + :element-type 'character + :if-does-not-exist :create + :if-exists :supersede) + (write-n-chars (+ most-positive-fixnum 7) f)) + (when (probe-file test) + (delete-file test))))) + ;;; success