;;; improperly.
;;;
;;; This test assumes that buffering is still done until a buffer of
-;;; SB-IMPL::BYTES-PER-BUFFER bytes is filled up, that the buffer may
+;;; SB-IMPL::+BYTES-PER-BUFFER+ bytes is filled up, that the buffer may
;;; immediately be completely filled for normal files, and that the
;;; buffer-fill routine is responsible for figuring out when we've
;;; reached EOF.
;; If non-NIL, size (in bytes) of the file that will exercise
;; the LISTEN problem.
(bytes-per-buffer-sometime
- (and (boundp 'sb-impl::bytes-per-buffer)
- (symbol-value 'sb-impl::bytes-per-buffer))))
+ (and (boundp 'sb-impl::+bytes-per-buffer+)
+ (symbol-value 'sb-impl::+bytes-per-buffer+))))
(when bytes-per-buffer-sometime
(unwind-protect
(progn
(read-byte stream))
(assert (not (listen stream)))))
(ignore-errors (delete-file listen-testfile-name))))))
+
+(with-test (:name :bug-395)
+ (let ((v (make-array 5 :fill-pointer 0 :element-type 'standard-char)))
+ (format v "foo")
+ (assert (equal (coerce "foo" 'base-string) v))))