[PATCH 0/1] MR4934: Split out test for ERROR_INVALID_PARAMETER return
added invocation to test list -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4934
From: "John H. Freeman" <john(a)freemania.pro> added invocation to test list --- dlls/iphlpapi/tests/iphlpapi.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c index cd192003345..734f507b3a6 100644 --- a/dlls/iphlpapi/tests/iphlpapi.c +++ b/dlls/iphlpapi/tests/iphlpapi.c @@ -1737,6 +1737,16 @@ static void testWin2KFunctions(void) testNotifyAddrChange(); } +/* + * Tests GetAdaptersAddresses for Invalid Parameters NULL size and return value of ERROR_INVALID_PARAMETER + */ +static void test_GetAdaptersAddressesInvalidParameterNULLsize(void) +{ + ULONG ret; + ret = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, NULL); + ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got %lu\n", ret); +} + static void test_GetAdaptersAddresses(void) { BOOL dns_eligible_found = FALSE; @@ -1744,9 +1754,6 @@ static void test_GetAdaptersAddresses(void) IP_ADAPTER_ADDRESSES *aa, *ptr; IP_ADAPTER_UNICAST_ADDRESS *ua; - ret = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, NULL); - ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got %lu\n", ret); - /* size should be ignored and overwritten if buffer is NULL */ size = 0x7fffffff; ret = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, &size); @@ -2930,6 +2937,7 @@ START_TEST(iphlpapi) WaitForSingleObject(thread, INFINITE); testWin2KFunctions(); + test_GetAdaptersAddressesInvalidParameterNULLsize(); test_GetAdaptersAddresses(); test_GetExtendedTcpTable(); test_GetExtendedUdpTable(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4934
participants (2)
-
John H. Freeman -
John H. Freeman (@tingling0072)