Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ef5ed0a4
Commit
ef5ed0a4
authored
Oct 13, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Oct 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add fread eof tests.
parent
ce2e980d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
file.c
dlls/msvcrt/tests/file.c
+11
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
ef5ed0a4
...
@@ -220,6 +220,17 @@ static void test_readmode( BOOL ascii_mode )
...
@@ -220,6 +220,17 @@ static void test_readmode( BOOL ascii_mode )
j
=
fp
+
10
;
j
=
fp
+
10
;
i
=
fread
(
buffer
,
1
,
j
,
file
);
i
=
fread
(
buffer
,
1
,
j
,
file
);
ok
(
i
==
j
,
"fread failed, expected %d got %d in %s
\n
"
,
j
,
i
,
IOMODE
);
ok
(
i
==
j
,
"fread failed, expected %d got %d in %s
\n
"
,
j
,
i
,
IOMODE
);
/* test fread eof */
ok
(
fseek
(
file
,
0
,
SEEK_END
)
==
0
,
"seek failure in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fread
(
buffer
,
1
,
1
,
file
)
==
0
,
"fread failure in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
!=
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fseek
(
file
,
-
3
,
SEEK_CUR
)
==
0
,
"seek failure in %s
\n
"
,
IOMODE
);
todo_wine
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fread
(
buffer
,
2
,
1
,
file
)
==
1
,
"fread failed in %s
\n
"
,
IOMODE
);
todo_wine
ok
(
feof
(
file
)
==
0
,
"feof failure in %s
\n
"
,
IOMODE
);
ok
(
fread
(
buffer
,
2
,
1
,
file
)
==
0
,
"fread failure in %s
\n
"
,
IOMODE
);
ok
(
feof
(
file
)
!=
0
,
"feof failure in %s
\n
"
,
IOMODE
);
/* test some additional functions */
/* test some additional functions */
rewind
(
file
);
rewind
(
file
);
...
...
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