setupapi/tests: Skip a test if user is not allowed to open logging.

This commit is contained in:
Nikolay Sivov 2015-05-25 12:39:34 +03:00 committed by Alexandre Julliard
parent 90d8896826
commit 98b991fdcf
1 changed files with 5 additions and 0 deletions

View File

@ -789,6 +789,11 @@ static void test_SetupLogError(void)
SetLastError(0xdeadbeef);
ret = SetupOpenLog(FALSE);
if (!ret && GetLastError() == ERROR_ACCESS_DENIED)
{
win_skip("SetupOpenLog() failed on insufficient permissions\n");
return;
}
ok(ret, "SetupOpenLog failed, error %d\n", GetLastError());
SetLastError(0xdeadbeef);