Francois Gouget : oleaut32/tests: Skip the test_stub() tests if we have insufficient privileges.
Module: wine Branch: master Commit: 2e0d15b00722edd3dad1d627f3a5ab2617bb34cc URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e0d15b00722edd3dad1d627f3... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Mon Feb 24 23:55:23 2014 +0100 oleaut32/tests: Skip the test_stub() tests if we have insufficient privileges. --- dlls/oleaut32/tests/typelib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c index 7adf064..f27a67f 100644 --- a/dlls/oleaut32/tests/typelib.c +++ b/dlls/oleaut32/tests/typelib.c @@ -5323,6 +5323,14 @@ static void test_stub(void) ok(hr == S_OK, "got %08x\n", hr); hr = RegisterTypeLib(tl, filenameW, NULL); + if (hr == TYPE_E_REGISTRYACCESS) + { + win_skip("Insufficient privileges to register typelib in the registry\n"); + ITypeLib_Release(tl); + DeleteFileW(filenameW); + CoUninitialize(); + return; + } ok(hr == S_OK, "got %08x\n", hr); ITypeLib_Release(tl);
participants (1)
-
Alexandre Julliard