Fix an error message.

This commit is contained in:
Richard Cohen 2005-10-10 10:29:24 +00:00 committed by Alexandre Julliard
parent 0966d61344
commit b70a5f2954
1 changed files with 2 additions and 1 deletions

View File

@ -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);