Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
86761541
Commit
86761541
authored
Feb 15, 2013
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Fix the GetAcceptExSockaddrs() test.
parent
665717ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
sock.c
dlls/ws2_32/tests/sock.c
+8
-6
No files found.
dlls/ws2_32/tests/sock.c
View file @
86761541
...
...
@@ -4771,6 +4771,7 @@ static void test_AcceptEx(void)
ok
(
!
iret
,
"getsockopt failed %d
\n
"
,
WSAGetLastError
());
ok
(
connect_time
==
~
0u
,
"unexpected connect time %u
\n
"
,
connect_time
);
/* AcceptEx() still won't complete until we send data */
iret
=
connect
(
connector
,
(
struct
sockaddr
*
)
&
bindAddress
,
sizeof
(
bindAddress
));
ok
(
iret
==
0
,
"connecting to accepting socket failed, error %d
\n
"
,
WSAGetLastError
());
...
...
@@ -4786,6 +4787,13 @@ static void test_AcceptEx(void)
iret
=
getsockname
(
connector
,
(
struct
sockaddr
*
)
&
peerAddress
,
&
remoteSize
);
ok
(
!
iret
,
"getsockname failed.
\n
"
);
/* AcceptEx() could complete any time now */
iret
=
send
(
connector
,
buffer
,
1
,
0
);
ok
(
iret
==
1
,
"could not send 1 byte: send %d errno %d
\n
"
,
iret
,
WSAGetLastError
());
dwret
=
WaitForSingleObject
(
overlapped
.
hEvent
,
1000
);
ok
(
dwret
==
WAIT_OBJECT_0
,
"Waiting for accept event failed with %d + errno %d
\n
"
,
dwret
,
GetLastError
());
/* Check if the buffer from AcceptEx is decoded correctly */
pGetAcceptExSockaddrs
(
buffer
,
2
,
sizeof
(
struct
sockaddr_in
)
+
16
,
sizeof
(
struct
sockaddr_in
)
+
16
,
(
struct
sockaddr
**
)
&
readBindAddress
,
&
localSize
,
...
...
@@ -4805,12 +4813,6 @@ static void test_AcceptEx(void)
"Remote socket port is different: %d != %d
\n
"
,
readRemoteAddress
->
sin_port
,
peerAddress
.
sin_port
);
iret
=
send
(
connector
,
buffer
,
1
,
0
);
ok
(
iret
==
1
,
"could not send 1 byte: send %d errno %d
\n
"
,
iret
,
WSAGetLastError
());
dwret
=
WaitForSingleObject
(
overlapped
.
hEvent
,
1000
);
ok
(
dwret
==
WAIT_OBJECT_0
,
"Waiting for accept event failed with %d + errno %d
\n
"
,
dwret
,
GetLastError
());
bret
=
GetOverlappedResult
((
HANDLE
)
listener
,
&
overlapped
,
&
bytesReturned
,
FALSE
);
ok
(
bret
,
"GetOverlappedResult failed, error %d
\n
"
,
GetLastError
());
ok
(
bytesReturned
==
1
,
"bytesReturned isn't supposed to be %d
\n
"
,
bytesReturned
);
...
...
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