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
32744752
Commit
32744752
authored
Sep 26, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Remove dead assignments (Clang).
parent
bef72c48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
file.c
dlls/msvcrt/tests/file.c
+4
-4
No files found.
dlls/msvcrt/tests/file.c
View file @
32744752
...
...
@@ -130,15 +130,15 @@ static void test_fileops( void )
ok
(
buffer
[
0
]
==
outbuffer
[
strlen
(
outbuffer
)
-
1
],
"fgets exchanged chars for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
rewind
(
file
);
for
(
i
=
0
,
c
=
EOF
;
i
<
sizeof
(
outbuffer
);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
outbuffer
);
i
++
)
{
ok
(
(
c
=
fgetc
(
file
)
)
==
outbuffer
[
i
],
"fgetc returned wrong data for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
fgetc
(
file
)
==
outbuffer
[
i
],
"fgetc returned wrong data for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
}
ok
((
c
=
fgetc
(
file
))
==
EOF
,
"getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
feof
(
file
),
"feof did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
ungetc
(
c
,
file
)
==
EOF
,
"ungetc(EOF) did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
feof
(
file
),
"feof after ungetc(EOF) did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
(
c
=
fgetc
(
file
)
)
==
EOF
,
"getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
fgetc
(
file
)
==
EOF
,
"getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
c
=
outbuffer
[
sizeof
(
outbuffer
)
-
1
];
ok
(
ungetc
(
c
,
file
)
==
c
,
"ungetc did not return its input for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
!
feof
(
file
),
"feof after ungetc returned EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
...
...
@@ -146,7 +146,7 @@ static void test_fileops( void )
ok
(
c
==
outbuffer
[
sizeof
(
outbuffer
)
-
1
],
"getc did not return ungetc'd data for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
!
feof
(
file
),
"feof after getc returned EOF prematurely for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
(
c
=
fgetc
(
file
)
)
==
EOF
,
"getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
fgetc
(
file
)
==
EOF
,
"getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
ok
(
feof
(
file
),
"feof after getc did not return EOF for bufmode=%x
\n
"
,
bufmodes
[
bufmode
]);
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