Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ebe6dabe
Commit
ebe6dabe
authored
Oct 29, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Add a test for GetAddrInfoW.
parent
140eede6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sock.c
dlls/ws2_32/tests/sock.c
+10
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
ebe6dabe
...
...
@@ -2764,6 +2764,7 @@ static void test_WSASendTo(void)
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
};
int
ret
;
...
...
@@ -2780,6 +2781,15 @@ static void test_GetAddrInfoW(void)
ret
=
pGetAddrInfoW
(
NULL
,
NULL
,
NULL
,
&
result
);
ok
(
ret
==
WSAHOST_NOT_FOUND
,
"got %d expected WSAHOST_NOT_FOUND
\n
"
,
ret
);
result
=
NULL
;
ret
=
pGetAddrInfoW
(
empty
,
NULL
,
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment