mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 09:32:15 +08:00
[APITESTS][WIN32KNT_APITEST] Improve NtGdiExtTextOutW testcase (#1286)
Use ok_int macros instead of obsolete TEST macros.
This commit is contained in:
committed by
GitHub
parent
1a591cbdfa
commit
377734c9ec
@@ -43,18 +43,16 @@ START_TEST(NtGdiExtTextOutW)
|
||||
len = wcslen(lpstr);
|
||||
|
||||
ret = NtGdiExtTextOutW(hDC, 0, 0, 0, &rect, lpstr, len, Dx, 0);
|
||||
TEST(ret == 1);
|
||||
ok_int(ret, 1);
|
||||
|
||||
ret = NtGdiExtTextOutW(hDC, 0, 0, ETO_PDY, &rect, lpstr, len, Dx, 0);
|
||||
TEST(ret == 1);
|
||||
ok_int(ret, 1);
|
||||
|
||||
/* Test invalid lpDx */
|
||||
ret = NtGdiExtTextOutW(hDC, 0, 0, 0, 0, lpstr, len, (INT*)((ULONG_PTR)-1), 0);
|
||||
TEST(ret == 0);
|
||||
ok_int(ret, 0);
|
||||
|
||||
/* Test alignment requirement for lpDx */
|
||||
ret = NtGdiExtTextOutW(hDC, 0, 0, 0, 0, lpstr, len, (INT*)((ULONG_PTR)Dx + 1), 0);
|
||||
TEST(ret == 1);
|
||||
|
||||
ok_int(ret, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user