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
74560c1d
Commit
74560c1d
authored
Apr 30, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
May 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test for IOCP behavior without AcceptEx call.
parent
a766ee4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
sock.c
dlls/ws2_32/tests/sock.c
+24
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
74560c1d
...
...
@@ -5717,6 +5717,30 @@ static void test_completion_port(void)
ok
(
num_bytes
==
0xdeadbeef
,
"Number of bytes transferred is %u
\n
"
,
num_bytes
);
ok
(
!
olp
,
"Overlapped structure is at %p
\n
"
,
olp
);
/* Test IOCP without AcceptEx */
if
((
src
=
setup_iocp_src
(
&
bindAddress
))
==
INVALID_SOCKET
)
goto
end
;
SetLastError
(
0xdeadbeef
);
io_port
=
CreateIoCompletionPort
((
HANDLE
)
src
,
previous_port
,
125
,
0
);
ok
(
io_port
!=
NULL
,
"failed to create completion port %u
\n
"
,
GetLastError
());
closesocket
(
src
);
src
=
INVALID_SOCKET
;
SetLastError
(
0xdeadbeef
);
key
=
0xdeadbeef
;
num_bytes
=
0xdeadbeef
;
olp
=
(
WSAOVERLAPPED
*
)
0xdeadbeef
;
bret
=
GetQueuedCompletionStatus
(
io_port
,
&
num_bytes
,
&
key
,
&
olp
,
200
);
ok
(
bret
==
FALSE
,
"failed to get completion status %u
\n
"
,
bret
);
ok
(
GetLastError
()
==
WAIT_TIMEOUT
,
"Last error was %d
\n
"
,
GetLastError
());
ok
(
key
==
0xdeadbeef
,
"Key is %lu
\n
"
,
key
);
ok
(
num_bytes
==
0xdeadbeef
,
"Number of bytes transferred is %u
\n
"
,
num_bytes
);
ok
(
!
olp
,
"Overlapped structure is at %p
\n
"
,
olp
);
/* */
if
((
src
=
setup_iocp_src
(
&
bindAddress
))
==
INVALID_SOCKET
)
...
...
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