X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstream.impure.lisp;h=a4922cc77e13c50288fb68f01d513e8cf4936c5c;hb=19088e271f3a8566454bc868eaa6acd33f877467;hp=0071bccdc08bc1d1177c02132015c4d09ed75976;hpb=bbf1b4cac9ec8069e33dfc4d34122d6dafec63c1;p=sbcl.git diff --git a/tests/stream.impure.lisp b/tests/stream.impure.lisp index 0071bcc..a4922cc 100644 --- a/tests/stream.impure.lisp +++ b/tests/stream.impure.lisp @@ -610,8 +610,7 @@ #-win32 (require :sb-posix) -#-win32 -(with-test (:name :interrupt-open) +(with-test (:name :interrupt-open :skipped-on :win32) (let ((fifo nil) (to 0)) (unwind-protect @@ -641,8 +640,7 @@ #-win32 (require :sb-posix) -#-win32 -(with-test (:name :overeager-character-buffering) +(with-test (:name :overeager-character-buffering :skipped-on :win32) (let ((fifo nil) (proc nil)) (maphash @@ -678,7 +676,8 @@ (setf fifo nil)))) sb-impl::*external-formats*))) -(with-test (:name :bug-657183) +(with-test (:name :bug-657183 :skipped-on '(not :sb-unicode)) + #+sb-unicode (let ((name (merge-pathnames "stream-impure.temp-test")) (text '(#\GREEK_SMALL_LETTER_LAMDA #\JAPANESE_BANK_SYMBOL @@ -709,4 +708,29 @@ (assert (eql (file-length f) 9)))) (ignore-errors (delete-file name))))) +(with-test (:name :bug-561642) + (let ((p "bug-561642-test.tmp")) + (unwind-protect + (progn + (with-open-file (f p + :if-exists :supersede + :if-does-not-exist :create + :direction :output) + (write-line "FOOBAR" f)) + (with-open-file (f p + :if-exists :append + :direction :output) + (let ((p0 (file-position f)) + (p1 (progn + (write-char #\newline f) + (file-position f))) + (p2 (progn + (write-char #\newline f) + (finish-output f) + (file-position f)))) + (assert (eql 7 p0)) + (assert (eql 8 p1)) + (assert (eql 9 p2))))) + (ignore-errors (delete-file p))))) + ;;; success