[1/3] msvcrt/tests: Test _cnt value after rewind/fflush.

Grazvydas Ignotas notasas at gmail.com
Wed Jun 18 05:55:51 CDT 2014


---
 dlls/msvcrt/tests/file.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index c98adf4..9fc95b0 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -2233,12 +2233,14 @@ static void test_write_flush_size(FILE *file, size_t bufsize)
 
     for (size = bufsize + 1; size >= bufsize - 1; size--) {
         rewind(file);
+        ok(file->_cnt == 0, "_cnt should be 0 after rewind, but is %d\n", file->_cnt);
         fwrite(outbuffer, 1, size, file);
         /* lseek() below intentionally redirects the write in fflush() to detect
          * if fwrite() has already flushed the whole buffer or not.
          */
         lseek(fd, 1, SEEK_SET);
         fflush(file);
+        todo_wine ok(file->_cnt == 0, "_cnt should be 0 after fflush, but is %d\n", file->_cnt);
         fseek(file, 0, SEEK_SET);
         ok(fread(inbuffer, 1, bufsize, file) == bufsize, "read failed\n");
         if (size == bufsize)
-- 
1.7.9.5




More information about the wine-patches mailing list