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
ee14852e
Commit
ee14852e
authored
Sep 09, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix the tests on several platforms.
parent
60b4feed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
avisplitter.c
dlls/quartz/tests/avisplitter.c
+6
-11
No files found.
dlls/quartz/tests/avisplitter.c
View file @
ee14852e
...
...
@@ -206,11 +206,8 @@ static void test_threads()
return
;
}
/* Before doing anything */
/* Before doing anything
(number of threads at the start differs per OS)
*/
baselevel
=
count_threads
();
expected
=
1
;
ok
(
baselevel
==
expected
,
"Basic amount of threads should be %d, not %d!
\n
"
,
expected
,
baselevel
);
file
=
CreateFileW
(
wfile
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
...
...
@@ -374,11 +371,7 @@ static void test_threads()
IBaseFilter_GetState
(
pavi
,
INFINITE
,
&
state
);
curlevel
=
count_threads
();
/* On a 2 stream filter, there are 4 or 5 threads (seems to be 5)
* One is the thread we are in. That leaves 3 or 4 for other dark purposes
* Wine is 1 thread short!
*/
ok
(
curlevel
==
expected
||
curlevel
==
expected
+
1
,
ok
(
curlevel
==
expected
,
"Amount of threads should be %d not %d
\n
"
,
expected
,
curlevel
);
IBaseFilter_Pause
(
pavi
);
...
...
@@ -452,8 +445,10 @@ fail:
if
(
pfile
)
IUnknown_Release
(
pfile
);
ok
(
baselevel
==
1
,
"Basic amount of threads should be %d, not %d!
\n
"
,
1
,
baselevel
);
curlevel
=
count_threads
();
todo_wine
ok
(
curlevel
==
baselevel
,
"Amount of threads should be %d not %d
\n
"
,
baselevel
,
curlevel
);
}
START_TEST
(
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