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
3dd514ce
Commit
3dd514ce
authored
Feb 07, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Make sure return values are used (LLVM/Clang).
parent
d2c4219c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
info.c
dlls/ntdll/tests/info.c
+5
-0
No files found.
dlls/ntdll/tests/info.c
View file @
3dd514ce
...
...
@@ -208,6 +208,7 @@ static void test_query_timeofday(void)
sti
.
uCurrentTimeZoneId
=
0xdeadbeef
;
status
=
pNtQuerySystemInformation
(
SystemTimeOfDayInformation
,
&
sti
,
28
,
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
||
broken
(
status
==
STATUS_INFO_LENGTH_MISMATCH
/* NT4 */
),
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
ok
(
0xdeadbeef
==
sti
.
uCurrentTimeZoneId
,
"This part of the buffer should not have been filled
\n
"
);
status
=
pNtQuerySystemInformation
(
SystemTimeOfDayInformation
,
&
sti
,
32
,
&
ReturnLength
);
...
...
@@ -366,6 +367,7 @@ static void test_query_procperf(void)
/* Find out the number of processors */
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
NeededLength
=
sbi
.
NumberOfProcessors
*
sizeof
(
SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
);
sppi
=
HeapAlloc
(
GetProcessHeap
(),
0
,
NeededLength
);
...
...
@@ -515,6 +517,7 @@ static void test_query_interrupt(void)
/* Find out the number of processors */
status
=
pNtQuerySystemInformation
(
SystemBasicInformation
,
&
sbi
,
sizeof
(
sbi
),
&
ReturnLength
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
NeededLength
=
sbi
.
NumberOfProcessors
*
sizeof
(
SYSTEM_INTERRUPT_INFORMATION
);
sii
=
HeapAlloc
(
GetProcessHeap
(),
0
,
NeededLength
);
...
...
@@ -1260,6 +1263,7 @@ static void test_affinity(void)
status
=
pNtSetInformationThread
(
GetCurrentThread
(),
ThreadAffinityMask
,
&
thread_affinity
,
sizeof
(
thread_affinity
)
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
status
=
pNtQueryInformationThread
(
GetCurrentThread
(),
ThreadBasicInformation
,
&
tbi
,
sizeof
(
tbi
),
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
ok
(
tbi
.
AffinityMask
==
1
,
"Unexpected thread affinity
\n
"
);
/* NOTE: Pre-Vista does not recognize the "all processors" flag (all bits set) */
...
...
@@ -1278,6 +1282,7 @@ static void test_affinity(void)
if
(
status
==
STATUS_SUCCESS
)
{
status
=
pNtQueryInformationThread
(
GetCurrentThread
(),
ThreadBasicInformation
,
&
tbi
,
sizeof
(
tbi
),
NULL
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08x
\n
"
,
status
);
ok
(
broken
(
tbi
.
AffinityMask
==
1
)
||
tbi
.
AffinityMask
==
(
1
<<
si
.
dwNumberOfProcessors
)
-
1
,
"Unexpected thread affinity
\n
"
);
}
...
...
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