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
04c40f2f
Commit
04c40f2f
authored
Aug 04, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Skip some tests on NT4.
parent
7661c698
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
avisplitter.c
dlls/quartz/tests/avisplitter.c
+20
-3
No files found.
dlls/quartz/tests/avisplitter.c
View file @
04c40f2f
...
...
@@ -25,6 +25,10 @@
#include "dshow.h"
#include "tlhelp32.h"
static
HANDLE
(
WINAPI
*
pCreateToolhelp32Snapshot
)(
DWORD
,
DWORD
);
static
BOOL
(
WINAPI
*
pThread32First
)(
HANDLE
,
LPTHREADENTRY32
);
static
BOOL
(
WINAPI
*
pThread32Next
)(
HANDLE
,
LPTHREADENTRY32
);
static
IUnknown
*
pAviSplitter
=
NULL
;
static
int
count_threads
(
void
)
...
...
@@ -33,19 +37,19 @@ static int count_threads(void)
int
threads
;
HANDLE
h
;
h
=
CreateToolhelp32Snapshot
(
TH32CS_SNAPTHREAD
,
0
);
h
=
p
CreateToolhelp32Snapshot
(
TH32CS_SNAPTHREAD
,
0
);
te
.
dwSize
=
sizeof
(
te
);
if
(
h
==
INVALID_HANDLE_VALUE
)
return
-
1
;
Thread32First
(
h
,
&
te
);
p
Thread32First
(
h
,
&
te
);
if
(
te
.
th32OwnerProcessID
==
GetCurrentProcessId
())
threads
=
1
;
else
threads
=
0
;
while
(
Thread32Next
(
h
,
&
te
))
while
(
p
Thread32Next
(
h
,
&
te
))
if
(
te
.
th32OwnerProcessID
==
GetCurrentProcessId
())
++
threads
;
...
...
@@ -195,6 +199,13 @@ static void test_threads()
DWORD
readbytes
;
FILTER_STATE
state
;
/* We need another way of counting threads on NT4. Skip these tests (for now) */
if
(
!
pCreateToolhelp32Snapshot
||
!
pThread32First
||
!
pThread32Next
)
{
win_skip
(
"Needed thread functions are not available (NT4)
\n
"
);
return
;
}
/* Before doing anything */
baselevel
=
count_threads
();
expected
=
1
;
...
...
@@ -447,6 +458,12 @@ fail:
START_TEST
(
avisplitter
)
{
HMODULE
kernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pCreateToolhelp32Snapshot
=
(
void
*
)
GetProcAddress
(
kernel32
,
"CreateToolhelp32Snapshot"
);
pThread32First
=
(
void
*
)
GetProcAddress
(
kernel32
,
"Thread32First"
);
pThread32Next
=
(
void
*
)
GetProcAddress
(
kernel32
,
"Thread32Next"
);
CoInitialize
(
NULL
);
if
(
!
create_avisplitter
())
...
...
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