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
2742660e
Commit
2742660e
authored
Sep 26, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Mark some capture tests as flaky.
parent
3af6ecec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
capture.c
dlls/mmdevapi/tests/capture.c
+8
-0
No files found.
dlls/mmdevapi/tests/capture.c
View file @
2742660e
...
...
@@ -184,9 +184,11 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
* whereas GetCurrentPadding grows when input is not consumed. */
hr
=
IAudioCaptureClient_GetNextPacketSize
(
acc
,
&
next
);
ok
(
hr
==
S_OK
,
"IAudioCaptureClient_GetNextPacketSize returns %08lx
\n
"
,
hr
);
flaky_wine
ok
(
next
<
pad
,
"GetNextPacketSize %u vs. GCP %u
\n
"
,
next
,
pad
);
hr
=
IAudioCaptureClient_GetBuffer
(
acc
,
&
data
,
&
frames
,
&
flags
,
&
pos
,
&
qpc
);
flaky_wine
ok
(
hr
==
S_OK
,
"Valid IAudioCaptureClient_GetBuffer returns %08lx
\n
"
,
hr
);
ok
(
next
==
frames
,
"GetNextPacketSize %u vs. GetBuffer %u
\n
"
,
next
,
frames
);
...
...
@@ -256,6 +258,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
}
frames
=
period
;
flaky_wine
ok
(
next
==
frames
,
"GetNextPacketSize %u vs. GetDevicePeriod %u
\n
"
,
next
,
frames
);
/* GetBufferSize is not a multiple of the period size! */
...
...
@@ -269,6 +272,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok
(
hr
==
S_OK
,
"GetCurrentPadding call returns %08lx
\n
"
,
hr
);
hr
=
IAudioCaptureClient_GetBuffer
(
acc
,
&
data
,
&
frames
,
&
flags
,
&
pos
,
&
qpc
);
flaky_wine
ok
(
hr
==
S_OK
,
"Valid IAudioCaptureClient_GetBuffer returns %08lx
\n
"
,
hr
);
trace
(
"Overrun position %d pad %u flags %lx, amount of frames locked: %u
\n
"
,
...
...
@@ -296,6 +300,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok
(
hr
==
S_OK
,
"GetCurrentPadding call returns %08lx
\n
"
,
hr
);
hr
=
IAudioCaptureClient_GetBuffer
(
acc
,
&
data
,
&
frames
,
&
flags
,
&
pos
,
&
qpc
);
flaky_wine
ok
(
hr
==
S_OK
,
"Valid IAudioCaptureClient_GetBuffer returns %08lx
\n
"
,
hr
);
trace
(
"Cont'ed position %d pad %u flags %lx, amount of frames locked: %u
\n
"
,
...
...
@@ -317,6 +322,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok
(
hr
==
S_OK
,
"Start on a stopped stream returns %08lx
\n
"
,
hr
);
hr
=
IAudioCaptureClient_GetBuffer
(
acc
,
&
data
,
&
frames
,
&
flags
,
&
pos
,
&
qpc
);
flaky_wine
ok
(
hr
==
S_OK
,
"Valid IAudioCaptureClient_GetBuffer returns %08lx
\n
"
,
hr
);
hr
=
IAudioClient_GetCurrentPadding
(
ac
,
&
pad
);
...
...
@@ -324,6 +330,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
trace
(
"Restart position %d pad %u flags %lx, amount of frames locked: %u
\n
"
,
hr
==
S_OK
?
(
UINT
)
pos
:
-
1
,
pad
,
flags
,
frames
);
flaky_wine
ok
(
pad
>
sum
,
"restarted GCP %u
\n
"
,
pad
);
/* GCP is still near buffer size */
if
(
frames
){
...
...
@@ -366,6 +373,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
ok
(
hr
==
S_OK
,
"GetCurrentPadding call returns %08lx
\n
"
,
hr
);
hr
=
IAudioCaptureClient_GetBuffer
(
acc
,
&
data
,
&
frames
,
&
flags
,
&
pos
,
&
qpc
);
flaky_wine
ok
(
hr
==
S_OK
,
"Valid IAudioCaptureClient_GetBuffer returns %08lx
\n
"
,
hr
);
trace
(
"Running position %d pad %u flags %lx, amount of frames locked: %u
\n
"
,
SUCCEEDED
(
hr
)
?
(
UINT
)
pos
:
-
1
,
pad
,
flags
,
frames
);
...
...
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