Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
47909d8d
Commit
47909d8d
authored
Jun 18, 2014
by
Grazvydas Ignotas
Committed by
Alexandre Julliard
Jun 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Test _cnt value after rewind/fflush.
parent
ac399b08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
file.c
dlls/msvcrt/tests/file.c
+2
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
47909d8d
...
...
@@ -2232,12 +2232,14 @@ static void test_write_flush_size(FILE *file, int 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment