[APITESTS][WIN32KNT_APITEST] Improve NtGdiEngCreatePalette testcase (#1284)

Use ok and ok_long and ok_ptr macros instead of obsolete TEST macros.
This commit is contained in:
Katayama Hirofumi MZ 2019-01-22 23:01:08 +09:00 committed by GitHub
parent 3bc47ebe41
commit d4505e4a7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,12 +15,11 @@ START_TEST(NtGdiEngCreatePalette)
hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
TEST(hPal != 0);
TEST(GDI_HANDLE_GET_TYPE(hPal) == GDI_OBJECT_TYPE_PALETTE);
ok(hPal != NULL, "hPal was NULL.\n");
ok_int((int)GDI_HANDLE_GET_TYPE(hPal), (int)GDI_OBJECT_TYPE_PALETTE);
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
TEST(pEntry->einfo.pobj != NULL);
TEST(pEntry->ObjectOwner.ulObj == GetCurrentProcessId());
TEST(pEntry->pUser == 0);
ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
ok_long(pEntry->ObjectOwner.ulObj, GetCurrentProcessId());
ok_ptr(pEntry->pUser, NULL);
//TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
}