X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstream.impure.lisp;h=fd3f8df30315116c77afc92af6ce435a19b0daaf;hb=ab5427d31da2bd95805cccc8e47b8f43d3dd606d;hp=0071bccdc08bc1d1177c02132015c4d09ed75976;hpb=bbf1b4cac9ec8069e33dfc4d34122d6dafec63c1;p=sbcl.git diff --git a/tests/stream.impure.lisp b/tests/stream.impure.lisp index 0071bcc..fd3f8df 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 @@ -709,4 +707,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