Paul Vriens : msi/tests: Skip some tests if we don't have enough rights.
Alexandre Julliard
julliard at winehq.org
Thu Jan 8 08:30:35 CST 2009
Module: wine
Branch: master
Commit: bb7efb1debf72bc48ce5ac8bcdacb0c65e3990bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bb7efb1debf72bc48ce5ac8bcdacb0c65e3990bb
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Jan 7 15:53:19 2009 +0100
msi/tests: Skip some tests if we don't have enough rights.
---
dlls/msi/tests/package.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 871d673..aa0b6f3 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -9585,6 +9585,13 @@ static void test_MsiGetProductProperty(void)
lstrcatA(keypath, prod_squashed);
res = RegCreateKeyA(HKEY_LOCAL_MACHINE, keypath, &userkey);
+ if (res == ERROR_ACCESS_DENIED)
+ {
+ skip("Not enough rights to perform tests\n");
+ RegDeleteKeyA(prodkey, "");
+ RegCloseKey(prodkey);
+ return;
+ }
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
res = RegCreateKeyA(userkey, "InstallProperties", &props);
More information about the wine-cvs
mailing list