ws2_32: Test GetAddrInfo with zero port.

This commit is contained in:
Matej Špindler 2011-11-11 13:58:47 +01:00 committed by Alexandre Julliard
parent e6ee421e88
commit 2e5718ba95
1 changed files with 19 additions and 0 deletions

View File

@ -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);