sti/tests: Skip some tests if not allowed to register our test application.

This commit is contained in:
Francois Gouget 2011-09-21 00:41:44 +02:00 committed by Alexandre Julliard
parent 33ed639345
commit b883b5574e
1 changed files with 5 additions and 2 deletions

View File

@ -244,12 +244,15 @@ static void test_launch_app_registry(void)
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
hr = IStillImage_RegisterLaunchApplication(pStiW, appName, appName); hr = IStillImage_RegisterLaunchApplication(pStiW, appName, appName);
ok(SUCCEEDED(hr), "could not register launch application, error 0x%X\n", hr); if (hr == E_ACCESSDENIED)
if (SUCCEEDED(hr)) skip("Not authorized to register a launch application\n");
else if (SUCCEEDED(hr))
{ {
hr = IStillImage_UnregisterLaunchApplication(pStiW, appName); hr = IStillImage_UnregisterLaunchApplication(pStiW, appName);
ok(SUCCEEDED(hr), "could not unregister launch application, error 0x%X\n", hr); ok(SUCCEEDED(hr), "could not unregister launch application, error 0x%X\n", hr);
} }
else
ok(0, "could not register launch application, error 0x%X\n", hr);
IStillImage_Release(pStiW); IStillImage_Release(pStiW);
} }
else else