Francois Gouget : sti/tests: Skip some tests if not allowed to register our test application.
Alexandre Julliard
julliard at winehq.org
Wed Sep 21 13:35:14 CDT 2011
Module: wine
Branch: master
Commit: b883b5574ec93e7a3fc70e25b0cbc9cbad57e397
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b883b5574ec93e7a3fc70e25b0cbc9cbad57e397
Author: Francois Gouget <fgouget at free.fr>
Date: Wed Sep 21 00:41:44 2011 +0200
sti/tests: Skip some tests if not allowed to register our test application.
---
dlls/sti/tests/sti.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/sti/tests/sti.c b/dlls/sti/tests/sti.c
index 7b9aade..f9839d4 100644
--- a/dlls/sti/tests/sti.c
+++ b/dlls/sti/tests/sti.c
@@ -244,12 +244,15 @@ static void test_launch_app_registry(void)
if (SUCCEEDED(hr))
{
hr = IStillImage_RegisterLaunchApplication(pStiW, appName, appName);
- ok(SUCCEEDED(hr), "could not register launch application, error 0x%X\n", hr);
- if (SUCCEEDED(hr))
+ if (hr == E_ACCESSDENIED)
+ skip("Not authorized to register a launch application\n");
+ else if (SUCCEEDED(hr))
{
hr = IStillImage_UnregisterLaunchApplication(pStiW, appName);
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);
}
else
More information about the wine-cvs
mailing list