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
1d8b70fc
Commit
1d8b70fc
authored
Jun 25, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Avoid races.
parent
fb6b0f93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
sock.c
dlls/ws2_32/tests/sock.c
+13
-3
No files found.
dlls/ws2_32/tests/sock.c
View file @
1d8b70fc
...
...
@@ -5468,6 +5468,8 @@ static void test_completion_port(void)
ok
(
iret
==
SOCKET_ERROR
,
"WSARecv returned %d
\n
"
,
iret
);
ok
(
GetLastError
()
==
ERROR_IO_PENDING
,
"Last error was %d
\n
"
,
GetLastError
());
Sleep
(
100
);
closesocket
(
src
);
src
=
INVALID_SOCKET
;
...
...
@@ -5523,6 +5525,9 @@ static void test_completion_port(void)
closesocket
(
src
);
src
=
INVALID_SOCKET
;
Sleep
(
100
);
num_bytes
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
...
...
@@ -5947,6 +5952,8 @@ static void test_completion_port(void)
iret
=
send
(
connector
,
buf
,
1
,
0
);
ok
(
iret
==
1
,
"could not send 1 byte: send %d errno %d
\n
"
,
iret
,
WSAGetLastError
());
Sleep
(
100
);
closesocket
(
dest
);
dest
=
INVALID_SOCKET
;
...
...
@@ -6022,12 +6029,15 @@ static void test_completion_port(void)
bret
=
GetQueuedCompletionStatus
(
io_port
,
&
num_bytes
,
&
key
,
&
olp
,
100
);
ok
(
bret
==
FALSE
,
"failed to get completion status %u
\n
"
,
bret
);
todo_wine
ok
((
GetLastError
()
==
ERROR_NETNAME_DELETED
)
||
(
GetLastError
()
==
ERROR_CONNECTION_ABORTED
),
"Last error was %d
\n
"
,
GetLastError
());
todo_wine
ok
(
GetLastError
()
==
ERROR_NETNAME_DELETED
||
GetLastError
()
==
ERROR_OPERATION_ABORTED
||
GetLastError
()
==
ERROR_CONNECTION_ABORTED
,
"Last error was %d
\n
"
,
GetLastError
());
ok
(
key
==
125
,
"Key is %lu
\n
"
,
key
);
ok
(
num_bytes
==
0
,
"Number of bytes transferred is %u
\n
"
,
num_bytes
);
ok
(
olp
==
&
ov
,
"Overlapped structure is at %p
\n
"
,
olp
);
todo_wine
ok
(
olp
&&
((
olp
->
Internal
==
(
ULONG
)
STATUS_LOCAL_DISCONNECT
)
||
(
olp
->
Internal
==
(
ULONG
)
STATUS_CONNECTION_ABORTED
)),
"Internal status is %lx
\n
"
,
olp
?
olp
->
Internal
:
0
);
todo_wine
ok
(
olp
&&
(
olp
->
Internal
==
(
ULONG
)
STATUS_LOCAL_DISCONNECT
||
olp
->
Internal
==
(
ULONG
)
STATUS_CANCELLED
||
olp
->
Internal
==
(
ULONG
)
STATUS_CONNECTION_ABORTED
),
"Internal status is %lx
\n
"
,
olp
?
olp
->
Internal
:
0
);
SetLastError
(
0xdeadbeef
);
key
=
0xdeadbeef
;
...
...
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