setupapi/tests: Skip a test if user is not allowed to open logging.
This commit is contained in:
parent
90d8896826
commit
98b991fdcf
|
@ -789,6 +789,11 @@ static void test_SetupLogError(void)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = SetupOpenLog(FALSE);
|
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());
|
ok(ret, "SetupOpenLog failed, error %d\n", GetLastError());
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
|
|
Loading…
Reference in New Issue