mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:07:16 +00:00
ws2_32: Test GetAddrInfo with zero port.
This commit is contained in:
parent
e6ee421e88
commit
2e5718ba95
|
@ -4152,6 +4152,7 @@ static void test_GetAddrInfoW(void)
|
|||
static const WCHAR port[] = {'8','0',0};
|
||||
static const WCHAR empty[] = {0};
|
||||
static const WCHAR localhost[] = {'l','o','c','a','l','h','o','s','t',0};
|
||||
static const WCHAR zero[] = {'0',0};
|
||||
|
||||
int ret;
|
||||
ADDRINFOW *result, hint;
|
||||
|
@ -4176,6 +4177,24 @@ static void test_GetAddrInfoW(void)
|
|||
}
|
||||
pFreeAddrInfoW(result);
|
||||
|
||||
result = NULL;
|
||||
ret = pGetAddrInfoW(NULL, zero, NULL, &result);
|
||||
todo_wine
|
||||
{
|
||||
ok(!ret, "GetAddrInfoW failed with %d\n", WSAGetLastError());
|
||||
ok(result != NULL, "GetAddrInfoW failed\n");
|
||||
}
|
||||
pFreeAddrInfoW(result);
|
||||
|
||||
result = NULL;
|
||||
ret = pGetAddrInfoW(empty, zero, NULL, &result);
|
||||
todo_wine
|
||||
{
|
||||
ok(!ret, "GetAddrInfoW failed with %d\n", WSAGetLastError());
|
||||
ok(result != NULL, "GetAddrInfoW failed\n");
|
||||
}
|
||||
pFreeAddrInfoW(result);
|
||||
|
||||
ret = pGetAddrInfoW(localhost, NULL, NULL, &result);
|
||||
ok(!ret, "GetAddrInfoW failed with %d\n", WSAGetLastError());
|
||||
pFreeAddrInfoW(result);
|
||||
|
|
Loading…
Reference in a new issue