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
f920f633
Commit
f920f633
authored
Feb 03, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add a workaround for test failures on Windows 7 VMs.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b9dd3272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
mfplat.c
dlls/mfplat/tests/mfplat.c
+11
-7
No files found.
dlls/mfplat/tests/mfplat.c
View file @
f920f633
...
...
@@ -5083,15 +5083,19 @@ static void test_queue_com_state(const char *name)
queue_type
=
name
[
1
]
-
'0'
;
hr
=
pMFAllocateWorkQueueEx
(
queue_type
,
&
queue
);
ok
(
hr
==
S_OK
,
"Failed to allocate a queue, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
broken
(
queue_type
==
MF_MULTITHREADED_WORKQUEUE
&&
hr
==
E_INVALIDARG
)
/* Win7 */
,
"Failed to allocate a queue of type %u, hr %#x.
\n
"
,
queue_type
,
hr
);
callback
.
param
=
queue
;
hr
=
MFPutWorkItem
(
queue
,
&
callback
.
IMFAsyncCallback_iface
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to queue work item, hr %#x.
\n
"
,
hr
);
WaitForSingleObject
(
callback
.
event
,
INFINITE
);
if
(
SUCCEEDED
(
hr
))
{
callback
.
param
=
queue
;
hr
=
MFPutWorkItem
(
queue
,
&
callback
.
IMFAsyncCallback_iface
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to queue work item, hr %#x.
\n
"
,
hr
);
WaitForSingleObject
(
callback
.
event
,
INFINITE
);
hr
=
MFUnlockWorkQueue
(
queue
);
ok
(
hr
==
S_OK
,
"Failed to unlock the queue, hr %#x.
\n
"
,
hr
);
hr
=
MFUnlockWorkQueue
(
queue
);
ok
(
hr
==
S_OK
,
"Failed to unlock the queue, hr %#x.
\n
"
,
hr
);
}
}
CloseHandle
(
callback
.
event
);
...
...
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