projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.26.8: QSHOW changes, bug reporting guidelines
[sbcl.git]
/
tests
/
stream.pure.lisp
diff --git
a/tests/stream.pure.lisp
b/tests/stream.pure.lisp
index
bd2f071
..
b35c61e
100644
(file)
--- a/
tests/stream.pure.lisp
+++ b/
tests/stream.pure.lisp
@@
-261,7
+261,7
@@
(frob 'base-char)
(frob 'nil))
(frob 'base-char)
(frob 'nil))
-(with-open-file (s "/dev/null" :element-type '(signed-byte 48))
+(with-open-file (s #-win32 "/dev/null" #+win32 "nul" :element-type '(signed-byte 48))
(assert (eq :eof (read-byte s nil :eof))))
(let* ((is (make-string-input-stream "foo"))
(assert (eq :eof (read-byte s nil :eof))))
(let* ((is (make-string-input-stream "foo"))
@@
-292,7
+292,7
@@
(assert (string= (get-output-stream-string os) "foo")))
(with-standard-io-syntax
(assert (string= (get-output-stream-string os) "foo")))
(with-standard-io-syntax
- (open "/dev/null"))
+ (open #-win32 "/dev/null" #+win32 "nul" ))
;;; PEEK-CHAR T uses whitespace[2]
(let ((*readtable* (copy-readtable)))
;;; PEEK-CHAR T uses whitespace[2]
(let ((*readtable* (copy-readtable)))
@@
-307,7
+307,7
@@
;;; improperly.
;;;
;;; This test assumes that buffering is still done until a buffer of
;;; 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.
;;; immediately be completely filled for normal files, and that the
;;; buffer-fill routine is responsible for figuring out when we've
;;; reached EOF.
@@
-316,8
+316,8
@@
;; If non-NIL, size (in bytes) of the file that will exercise
;; the LISTEN problem.
(bytes-per-buffer-sometime
;; 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
(when bytes-per-buffer-sometime
(unwind-protect
(progn
@@
-332,3
+332,8
@@
(read-byte stream))
(assert (not (listen stream)))))
(ignore-errors (delete-file listen-testfile-name))))))
(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))))