ntdll/tests: Skip test when we don't have enough rights.

This commit is contained in:
Paul Vriens 2008-05-19 14:01:26 +02:00 committed by Alexandre Julliard
parent 446243b1d9
commit b65c1d47eb
1 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,11 @@ static void test_ports_server(void)
obj.ObjectName = &port;
status = pNtCreatePort(&PortHandle, &obj, 100, 100, 0);
if (status == STATUS_ACCESS_DENIED)
{
skip("Not enough rights\n");
return;
}
todo_wine
{
ok(status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %d\n", status);