mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 16:39:20 +00:00
qcap/tests: Remove duplicated tests for allocator identity.
We test once above that the source does not use the existing allocator, but then implicitly release the allocator we are testing against (when the source assigns a new allocator to the sink). As a result, these ok() statements were testing that newly allocated allocators had a different address than the original allocator, which of course sometimes fails. Since we don't need to perform this test more than once anyway, just get rid of the offending ok() statements.
This commit is contained in:
parent
51c5f44bd7
commit
bc9c8684fd
|
@ -705,8 +705,6 @@ static void test_source_allocator(IFilterGraph2 *graph, IMediaControl *control,
|
|||
hr = IFilterGraph2_ConnectDirect(graph, source, &testsink->sink.pin.IPin_iface, &mt);
|
||||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
|
||||
todo_wine ok(testsink->sink.pAllocator && testsink->sink.pAllocator != allocator,
|
||||
"Got unexpected allocator %p.\n", testsink->sink.pAllocator);
|
||||
hr = IMemAllocator_GetProperties(testsink->sink.pAllocator, &props);
|
||||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
ok(props.cBuffers == req_props.cBuffers, "Got %ld buffers.\n", props.cBuffers);
|
||||
|
@ -728,8 +726,6 @@ static void test_source_allocator(IFilterGraph2 *graph, IMediaControl *control,
|
|||
hr = IFilterGraph2_ConnectDirect(graph, source, &testsink->sink.pin.IPin_iface, &mt);
|
||||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
|
||||
todo_wine ok(testsink->sink.pAllocator && testsink->sink.pAllocator != allocator,
|
||||
"Got unexpected allocator %p.\n", testsink->sink.pAllocator);
|
||||
hr = IMemAllocator_GetProperties(testsink->sink.pAllocator, &props);
|
||||
ok(hr == S_OK, "Got hr %#lx.\n", hr);
|
||||
ok(props.cBuffers == 4, "Got %ld buffers.\n", props.cBuffers);
|
||||
|
|
Loading…
Reference in a new issue