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
fcb8e3b1
Commit
fcb8e3b1
authored
Oct 22, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Remove or fix tests that fail on Windows.
parent
3bb04c88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
35 deletions
+4
-35
pdh.c
dlls/pdh/tests/pdh.c
+4
-35
No files found.
dlls/pdh/tests/pdh.c
View file @
fcb8e3b1
...
...
@@ -478,7 +478,7 @@ static void test_PdhGetCounterInfoA( void )
ok
(
ret
==
ERROR_SUCCESS
,
"PdhAddCounterA failed 0x%08x
\n
"
,
ret
);
ret
=
PdhGetCounterInfoA
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_HANDLE
,
"PdhGetCounterInfoA failed 0x%08x
\n
"
,
ret
);
ok
(
ret
==
PDH_INVALID_HANDLE
||
ret
==
PDH_INVALID_ARGUMENT
,
"PdhGetCounterInfoA failed 0x%08x
\n
"
,
ret
);
ret
=
PdhGetCounterInfoA
(
counter
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhGetCounterInfoA failed 0x%08x
\n
"
,
ret
);
...
...
@@ -532,7 +532,7 @@ static void test_PdhGetCounterInfoW( void )
ok
(
ret
==
ERROR_SUCCESS
,
"PdhAddCounterW failed 0x%08x
\n
"
,
ret
);
ret
=
PdhGetCounterInfoW
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_HANDLE
,
"PdhGetCounterInfoW failed 0x%08x
\n
"
,
ret
);
ok
(
ret
==
PDH_INVALID_HANDLE
||
ret
==
PDH_INVALID_ARGUMENT
,
"PdhGetCounterInfoW failed 0x%08x
\n
"
,
ret
);
ret
=
PdhGetCounterInfoW
(
counter
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhGetCounterInfoW failed 0x%08x
\n
"
,
ret
);
...
...
@@ -634,20 +634,9 @@ static void test_PdhLookupPerfNameByIndexA( void )
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
size
=
1
;
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
0
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
1
,
"PdhLookupPerfNameByIndexA failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
);
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
0
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
ok
(
!
strcmp
(
buffer
,
"!!"
),
"PdhLookupPerfNameByIndexA failed %s
\n
"
,
buffer
);
size
=
0
;
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
6
,
buffer
,
&
size
);
ok
(
ret
==
PDH_MORE_DATA
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
"% Processor Time"
),
"PdhLookupPerfNameByIndexA failed %d
\n
"
,
size
);
ok
(
ret
==
PDH_MORE_DATA
||
ret
==
PDH_INSUFFICIENT_BUFFER
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
size
=
sizeof
(
buffer
);
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
6
,
buffer
,
&
size
);
...
...
@@ -656,11 +645,6 @@ static void test_PdhLookupPerfNameByIndexA( void )
"PdhLookupPerfNameByIndexA failed, got %s expected
\'
%% Processor Time
\'\n
"
,
buffer
);
ok
(
size
==
sizeof
(
"% Processor Time"
),
"PdhLookupPerfNameByIndexA failed %d
\n
"
,
size
);
size
=
0
;
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
674
,
NULL
,
&
size
);
ok
(
ret
==
PDH_MORE_DATA
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
"System Up Time"
),
"PdhLookupPerfNameByIndexA failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
);
ret
=
PdhLookupPerfNameByIndexA
(
NULL
,
674
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexA failed 0x%08x
\n
"
,
ret
);
...
...
@@ -678,30 +662,15 @@ static void test_PdhLookupPerfNameByIndexW( void )
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
0
,
NULL
,
NULL
);
ok
(
ret
==
PDH_INVALID_ARGUMENT
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
size
=
1
;
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
0
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
1
,
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
)
/
sizeof
(
WCHAR
);
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
0
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
size
=
0
;
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
6
,
buffer
,
&
size
);
ok
(
ret
==
PDH_MORE_DATA
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
processor_time
)
/
sizeof
(
WCHAR
),
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
ok
(
ret
==
PDH_MORE_DATA
||
ret
==
PDH_INSUFFICIENT_BUFFER
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
size
=
sizeof
(
buffer
)
/
sizeof
(
WCHAR
);
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
6
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
processor_time
)
/
sizeof
(
WCHAR
),
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
size
=
0
;
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
674
,
NULL
,
&
size
);
ok
(
ret
==
PDH_MORE_DATA
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
ok
(
size
==
sizeof
(
uptime
)
/
sizeof
(
WCHAR
),
"PdhLookupPerfNameByIndexW failed %d
\n
"
,
size
);
size
=
sizeof
(
buffer
)
/
sizeof
(
WCHAR
);
ret
=
PdhLookupPerfNameByIndexW
(
NULL
,
674
,
buffer
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"PdhLookupPerfNameByIndexW failed 0x%08x
\n
"
,
ret
);
...
...
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