Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru --- dlls/ole32/tests/compobj.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c index d1e947e393f..1d46a5b9c13 100644 --- a/dlls/ole32/tests/compobj.c +++ b/dlls/ole32/tests/compobj.c @@ -4098,6 +4098,25 @@ static void test_mta_usage(void) ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
test_apt_type(APTTYPE_CURRENT, APTTYPEQUALIFIER_NONE); + + hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); + ok(hr == S_OK, "Unexpected hr %#x.\n", hr); + + test_apt_type(APTTYPE_MAINSTA, APTTYPEQUALIFIER_NONE); + + cookie = 0; + hr = pCoIncrementMTAUsage(&cookie); + ok(hr == S_OK, "Unexpected hr %#x.\n", hr); + ok(cookie != NULL, "Unexpected cookie %p.\n", cookie); + + test_apt_type(APTTYPE_MAINSTA, APTTYPEQUALIFIER_NONE); + + hr = pCoDecrementMTAUsage(cookie); + ok(hr == S_OK, "Unexpected hr %#x.\n", hr); + + CoUninitialize(); + + test_apt_type(APTTYPE_CURRENT, APTTYPEQUALIFIER_NONE); }
static void test_CoCreateInstanceFromApp(void)
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=94634
Your paranoid android.
=== w7u_adm (32 bit report) ===
ole32: compobj.c:3078: Test failed: CoWaitForMultipleHandles didn't pump all WM_DDE_FIRST messages compobj.c:3081: Test failed: PeekMessageA failed, error 1400 compobj.c:3082: Test failed: expected msg.message = WM_QUIT, got 0 compobj.c:3083: Test failed: expected msg.wParam = 42, got 0
Marvin testbot@winehq.org wrote:
=== w7u_adm (32 bit report) ===
ole32: compobj.c:3078: Test failed: CoWaitForMultipleHandles didn't pump all WM_DDE_FIRST messages compobj.c:3081: Test failed: PeekMessageA failed, error 1400 compobj.c:3082: Test failed: expected msg.message = WM_QUIT, got 0 compobj.c:3083: Test failed: expected msg.wParam = 42, got 0
These are existing failures.