msvcrt: Few failing tests for O_TEXT files

Richard Cohen richard at daijobu.co.uk
Mon Oct 10 03:01:30 CDT 2005


Saturday, October 8, 2005, Vitaliy Margolen wrote:
> 
> Ah, doh. Just forgot to change an error message ;)
> 
> Vitaliy

Changelog:
Fix error message.

-------------- next part --------------
Index: dlls/msvcrt/tests/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/tests/file.c,v
retrieving revision 1.18
diff -u -p -r1.18 file.c
--- dlls/msvcrt/tests/file.c	8 Oct 2005 10:34:58 -0000	1.18
+++ dlls/msvcrt/tests/file.c	10 Oct 2005 08:00:12 -0000
@@ -253,7 +253,8 @@ static void test_file_write_read( void )
   /* Test reading only \n or \r */
   tempfd = _open(tempf,_O_RDONLY|_O_TEXT); /* open in TEXT mode */
   _lseek(tempfd, -1, FILE_END);
-  ok(_read(tempfd,btext,LLEN) == 1, "_read expected 0 got '\\n'\n");
+  ret = _read(tempfd,btext,LLEN);
+  ok(ret == 1, "_read expected 1 got bad length: %d\n", ret);
   _lseek(tempfd, -2, FILE_END);
   ret = _read(tempfd,btext,LLEN);
   ok(ret == 1 && *btext == '\n', "_read expected '\\n' got bad length: %d\n", ret);


More information about the wine-patches mailing list