netapi32/tests: Add a test for well known account RIDs.

This commit is contained in:
Nicolas Le Cam 2008-10-16 23:47:31 +02:00 committed by Alexandre Julliard
parent 5044f57ce6
commit 72d764f60e
1 changed files with 7 additions and 0 deletions

View File

@ -200,6 +200,9 @@ static void run_querydisplayinformation1_tests(void)
ok(!hasAdmin, "One admin user\n");
ok(rec->usri1_flags & UF_SCRIPT, "UF_SCRIPT flag is set\n");
ok(rec->usri1_flags & UF_NORMAL_ACCOUNT, "UF_NORMAL_ACCOUNT flag is set\n");
ok(rec->usri1_user_id == DOMAIN_USER_RID_ADMIN,
"Expected DOMAIN_USER_RID_ADMIN, got %u\n",
rec->usri1_user_id);
hasAdmin = TRUE;
}
else if (!lstrcmpW(rec->usri1_name, sGuestUserName))
@ -207,6 +210,10 @@ static void run_querydisplayinformation1_tests(void)
ok(!hasGuest, "One guest record\n");
ok(rec->usri1_flags & UF_SCRIPT, "UF_SCRIPT flag is set\n");
ok(rec->usri1_flags & UF_NORMAL_ACCOUNT, "UF_NORMAL_ACCOUNT flag is set\n");
todo_wine
ok(rec->usri1_user_id == DOMAIN_USER_RID_GUEST,
"Expected DOMAIN_USER_RID_GUEST, got %u\n",
rec->usri1_user_id);
hasGuest = TRUE;
}