Module: wine Branch: master Commit: 9686c95749ed604d13fac1504b30c953897e1ff7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9686c95749ed604d13fac1504b...
Author: Hans Leidekker hans@codeweavers.com Date: Mon Jul 26 12:09:12 2010 +0200
msi/tests: Skip a test if the current user has insufficient rights.
---
dlls/msi/tests/msi.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c index 06f85b5..dc023f4 100644 --- a/dlls/msi/tests/msi.c +++ b/dlls/msi/tests/msi.c @@ -297,6 +297,13 @@ static void test_null(void) }
r = RegSetValueA(hkey, NULL, REG_SZ, "test", strlen("test")); + if (r == ERROR_ACCESS_DENIED) + { + skip("Not enough rights to perform tests\n"); + HeapFree(GetProcessHeap(), 0, lpData); + RegCloseKey(hkey); + return; + } ok( r == ERROR_SUCCESS, "wrong error %d\n", r);
r = MsiGetProductInfoA("", "", NULL, NULL);