https://git.reactos.org/?p=reactos.git;a=commitdiff;h=377734c9eca6af3ec4973f2543ccc4056508fd72
commit 377734c9eca6af3ec4973f2543ccc4056508fd72 Author: Katayama Hirofumi MZ <[email protected]> AuthorDate: Tue Jan 22 21:11:26 2019 +0900 Commit: GitHub <[email protected]> CommitDate: Tue Jan 22 21:11:26 2019 +0900 [APITESTS][WIN32KNT_APITEST] Improve NtGdiExtTextOutW testcase (#1286) Use ok_int macros instead of obsolete TEST macros. --- modules/rostests/apitests/win32nt/ntgdi/NtGdiExtTextOutW.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/rostests/apitests/win32nt/ntgdi/NtGdiExtTextOutW.c b/modules/rostests/apitests/win32nt/ntgdi/NtGdiExtTextOutW.c index 44d0b67430..ef25e81ed0 100644 --- a/modules/rostests/apitests/win32nt/ntgdi/NtGdiExtTextOutW.c +++ b/modules/rostests/apitests/win32nt/ntgdi/NtGdiExtTextOutW.c @@ -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); } -
