mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
mmdevapi/tests: Mark some capture tests as flaky.
This commit is contained in:
parent
3af6ececec
commit
2742660e08
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue