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
77053701
Commit
77053701
authored
Sep 16, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh/tests: Make the test pass on Windows 2000.
parent
4c531edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pdh.c
dlls/pdh/tests/pdh.c
+6
-2
No files found.
dlls/pdh/tests/pdh.c
View file @
77053701
...
...
@@ -130,7 +130,9 @@ static void test_PdhAddCounterA( void )
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhAddCounterA failed 0x%08x
\n
"
,
ret
);
ret
=
PdhAddCounterA
(
query
,
"
\\
System
\\
Nonexistent Counter"
,
0
,
&
counter
);
ok
(
ret
==
PDH_CSTATUS_NO_COUNTER
,
"PdhAddCounterA failed 0x%08x
\n
"
,
ret
);
ok
(
ret
==
PDH_CSTATUS_NO_COUNTER
||
broken
(
ret
==
PDH_INVALID_PATH
),
/* Win2K */
"PdhAddCounterA failed 0x%08x
\n
"
,
ret
);
ok
(
!
counter
,
"PdhAddCounterA failed %p
\n
"
,
counter
);
ret
=
PdhAddCounterA
(
query
,
"
\\
System
\\
System Up Time"
,
0
,
&
counter
);
...
...
@@ -177,7 +179,9 @@ static void test_PdhAddCounterW( void )
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhAddCounterW failed 0x%08x
\n
"
,
ret
);
ret
=
PdhAddCounterW
(
query
,
nonexistent_counter
,
0
,
&
counter
);
ok
(
ret
==
PDH_CSTATUS_NO_COUNTER
,
"PdhAddCounterW failed 0x%08x
\n
"
,
ret
);
ok
(
ret
==
PDH_CSTATUS_NO_COUNTER
||
broken
(
ret
==
PDH_INVALID_PATH
),
/* Win2K */
"PdhAddCounterW failed 0x%08x
\n
"
,
ret
);
ok
(
!
counter
,
"PdhAddCounterW failed %p
\n
"
,
counter
);
ret
=
PdhAddCounterW
(
query
,
percentage_processor_time
,
0
,
&
counter
);
...
...
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