Dmitry Timoshkov : wbemprox/tests: Run StdRegProv tests using ROOT\\DEFAULT connection point.

Alexandre Julliard julliard at winehq.org
Mon Dec 21 15:49:52 CST 2020


Module: wine
Branch: master
Commit: a45f6a49f7e4749bc56d11ac4454c68c4a087f5a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a45f6a49f7e4749bc56d11ac4454c68c4a087f5a

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Dec 18 15:51:19 2020 +0300

wbemprox/tests: Run StdRegProv tests using ROOT\\DEFAULT connection point.

StdRegProv is not available on ROOT\\CIMV2 for unknown reason on some Windows configs.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemprox/tests/query.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c
index 191b9f6c85a..73f055e8bd1 100644
--- a/dlls/wbemprox/tests/query.c
+++ b/dlls/wbemprox/tests/query.c
@@ -1824,6 +1824,19 @@ START_TEST(query)
     test_Win32_VideoController( services );
     test_Win32_WinSAT( services );
 
+    SysFreeString( path );
+    IWbemServices_Release( services );
+
+    /* Some tests need other connection point */
+    path = SysAllocString( L"ROOT\\DEFAULT" );
+    hr = IWbemLocator_ConnectServer( locator, path, NULL, NULL, NULL, 0, NULL, NULL, &services );
+    ok( hr == S_OK, "failed to get IWbemServices interface %08x\n", hr );
+    hr = CoSetProxyBlanket( (IUnknown *)services, RPC_C_AUTHN_WINNT, RPC_C_AUTHZ_NONE, NULL,
+                            RPC_C_AUTHN_LEVEL_CALL, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE );
+    ok( hr == S_OK, "failed to set proxy blanket %08x\n", hr );
+
+    test_StdRegProv( services );
+
     SysFreeString( path );
     IWbemServices_Release( services );
     IWbemLocator_Release( locator );




More information about the wine-cvs mailing list