dlls/netapi32/tests/apibuf.c -- simplify two tests (RESEND)
Gerald Pfeifer
gerald at pfeifer.com
Wed Nov 21 18:10:33 CST 2007
A final one for today, which eliminates two no-ops.
---------- Forwarded message ----------
From: Gerald Pfeifer <gerald at pfeifer.com>
To: <wine-patches at winehq.org>
Date: Sat, 3 Nov 2007 21:44:16 +0100 (CET)
Subject: dlls/netapi32/tests/apibuf.c -- simplify two tests
More of the same, though as some of the other changes showed this is
really far from mechanical an endeavor.
Gerald
ChangeLog:
Remove one tests and simplify another based on the limited range of unsigned.
Index: dlls/netapi32/tests/apibuf.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/tests/apibuf.c,v
retrieving revision 1.12
diff -u -3 -p -r1.12 apibuf.c
--- dlls/netapi32/tests/apibuf.c 23 Mar 2007 13:37:47 -0000 1.12
+++ dlls/netapi32/tests/apibuf.c 3 Nov 2007 20:40:47 -0000
@@ -58,7 +58,6 @@ static void run_apibuf_tests(void)
ok(pNetApiBufferFree(p) == NERR_Success, "Freed\n");
ok(pNetApiBufferSize(p, &dwSize) == NERR_Success, "Got size\n");
- ok(dwSize >= 0, "The size\n");
ok(pNetApiBufferSize(NULL, &dwSize) == ERROR_INVALID_PARAMETER, "Error for NULL pointer\n");
/* border reallocate cases */
@@ -72,7 +71,7 @@ static void run_apibuf_tests(void)
ok(pNetApiBufferAllocate(0, (LPVOID *)&p) == NERR_Success,
"Reserved memory\n");
ok(pNetApiBufferSize(p, &dwSize) == NERR_Success, "Got size\n");
- ok((dwSize >= 0) && (dwSize < 0xFFFFFFFF),"The size of the 0-length buffer\n");
+ ok(dwSize < 0xFFFFFFFF, "The size of the 0-length buffer\n");
ok(pNetApiBufferFree(p) == NERR_Success, "Freed\n");
/* NULL-Pointer */
More information about the wine-patches
mailing list