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
fe9544ab
Commit
fe9544ab
authored
Feb 10, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Make sure return values are used (LLVM/Clang).
parent
da3feee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
rtlbitmap.c
dlls/ntdll/tests/rtlbitmap.c
+6
-0
No files found.
dlls/ntdll/tests/rtlbitmap.c
View file @
fe9544ab
...
...
@@ -497,6 +497,7 @@ static void test_RtlFindSetRuns(void)
/* Get first 2 */
ulCount
=
pRtlFindSetRuns
(
&
bm
,
runs
,
2
,
FALSE
);
ok
(
ulCount
==
2
,
"RtlFindClearRuns returned %d, expected 2
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
101
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
101
,
"bad find
\n
"
);
ok
(
runs
[
0
].
NumberOfBits
+
runs
[
1
].
NumberOfBits
==
19
+
3
,
"bad size
\n
"
);
...
...
@@ -506,6 +507,7 @@ static void test_RtlFindSetRuns(void)
/* Get longest 3 */
memset
(
runs
,
0
,
sizeof
(
runs
));
ulCount
=
pRtlFindSetRuns
(
&
bm
,
runs
,
2
,
TRUE
);
ok
(
ulCount
==
2
,
"RtlFindClearRuns returned %d, expected 2
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
0
].
NumberOfBits
+
runs
[
1
].
NumberOfBits
==
33
+
19
,
"bad size
\n
"
);
...
...
@@ -515,6 +517,7 @@ static void test_RtlFindSetRuns(void)
/* Get all 3 */
memset
(
runs
,
0
,
sizeof
(
runs
));
ulCount
=
pRtlFindSetRuns
(
&
bm
,
runs
,
3
,
TRUE
);
ok
(
ulCount
==
3
,
"RtlFindClearRuns returned %d, expected 3
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
101
||
runs
[
0
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
101
||
...
...
@@ -571,6 +574,7 @@ static void test_RtlFindClearRuns(void)
/* Get first 2 */
ulCount
=
pRtlFindClearRuns
(
&
bm
,
runs
,
2
,
FALSE
);
ok
(
ulCount
==
2
,
"RtlFindClearRuns returned %d, expected 2
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
101
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
101
,
"bad find
\n
"
);
ok
(
runs
[
0
].
NumberOfBits
+
runs
[
1
].
NumberOfBits
==
19
+
3
,
"bad size
\n
"
);
...
...
@@ -580,6 +584,7 @@ static void test_RtlFindClearRuns(void)
/* Get longest 3 */
memset
(
runs
,
0
,
sizeof
(
runs
));
ulCount
=
pRtlFindClearRuns
(
&
bm
,
runs
,
2
,
TRUE
);
ok
(
ulCount
==
2
,
"RtlFindClearRuns returned %d, expected 2
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
0
].
NumberOfBits
+
runs
[
1
].
NumberOfBits
==
33
+
19
,
"bad size
\n
"
);
...
...
@@ -589,6 +594,7 @@ static void test_RtlFindClearRuns(void)
/* Get all 3 */
memset
(
runs
,
0
,
sizeof
(
runs
));
ulCount
=
pRtlFindClearRuns
(
&
bm
,
runs
,
3
,
TRUE
);
ok
(
ulCount
==
3
,
"RtlFindClearRuns returned %d, expected 3
\n
"
,
ulCount
);
ok
(
runs
[
0
].
StartingIndex
==
7
||
runs
[
0
].
StartingIndex
==
101
||
runs
[
0
].
StartingIndex
==
1877
,
"bad find
\n
"
);
ok
(
runs
[
1
].
StartingIndex
==
7
||
runs
[
1
].
StartingIndex
==
101
||
...
...
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