mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[APITESTS][WIN32KNT_APITEST] Improve NtGdiFlushUserBatch testcase (#1287)
Use ok, ok_int, ok_long, and ok_ptr macros instead of TEST and ASSERT macros.
This commit is contained in:
parent
b8ca99fad5
commit
1a591cbdfa
1 changed files with 11 additions and 12 deletions
|
@ -21,16 +21,16 @@ START_TEST(NtGdiFlushUserBatch)
|
||||||
return APISTATUS_NOT_FOUND;
|
return APISTATUS_NOT_FOUND;
|
||||||
|
|
||||||
pTeb = NtCurrentTeb();
|
pTeb = NtCurrentTeb();
|
||||||
ASSERT(pTeb);
|
ok(pTeb != NULL, "pTeb was NULL.\n");
|
||||||
|
|
||||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||||
|
|
||||||
TEST(pRet != 0);
|
ok(pRet != NULL, "pRet was NULL.\n");
|
||||||
TEST(pRet == &pTeb->RealClientId);
|
ok_ptr(pRet, &pTeb->RealClientId);
|
||||||
|
|
||||||
TEST(pTeb->GdiBatchCount == 0);
|
ok_long(pTeb->GdiBatchCount, 0);
|
||||||
TEST(pTeb->GdiTebBatch.Offset == 0);
|
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||||
TEST(pTeb->GdiTebBatch.HDC == 0);
|
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||||
|
|
||||||
/* Set up some bullshit */
|
/* Set up some bullshit */
|
||||||
pTeb->InDbgPrint = 1;
|
pTeb->InDbgPrint = 1;
|
||||||
|
@ -39,11 +39,10 @@ START_TEST(NtGdiFlushUserBatch)
|
||||||
pTeb->GdiTebBatch.HDC = (HDC)123;
|
pTeb->GdiTebBatch.HDC = (HDC)123;
|
||||||
|
|
||||||
pRet = (PVOID)pNtGdiFlushUserBatch();
|
pRet = (PVOID)pNtGdiFlushUserBatch();
|
||||||
TEST(pRet == &pTeb->RealClientId);
|
ok_ptr(pRet, &pTeb->RealClientId);
|
||||||
|
|
||||||
TEST(pTeb->InDbgPrint == 0);
|
|
||||||
TEST(pTeb->GdiBatchCount == 12);
|
|
||||||
TEST(pTeb->GdiTebBatch.Offset == 0);
|
|
||||||
TEST(pTeb->GdiTebBatch.HDC == 0);
|
|
||||||
|
|
||||||
|
ok_int(pTeb->InDbgPrint, 0);
|
||||||
|
ok_long(pTeb->GdiBatchCount, 12);
|
||||||
|
ok_long(pTeb->GdiTebBatch.Offset, 0);
|
||||||
|
ok_ptr(pTeb->GdiTebBatch.HDC, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue