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
25bcb9d3
Commit
25bcb9d3
authored
Aug 02, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test sending data to a peer which is closed.
parent
311cf13a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
sock.c
dlls/ws2_32/tests/sock.c
+20
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
25bcb9d3
...
...
@@ -9416,6 +9416,26 @@ static void test_shutdown(void)
closesocket
(
client
);
closesocket
(
server
);
/* Send data to a peer which is closed. */
tcp_socketpair
(
&
client
,
&
server
);
WSASetLastError
(
0xdeadbeef
);
ret
=
shutdown
(
client
,
SD_SEND
);
ok
(
!
ret
,
"expected success
\n
"
);
ok
(
!
WSAGetLastError
()
||
WSAGetLastError
()
==
0xdeadbeef
/* < 7 */
,
"got error %u
\n
"
,
WSAGetLastError
());
closesocket
(
client
);
ret
=
send
(
server
,
"test"
,
5
,
0
);
ok
(
ret
==
5
,
"got %d
\n
"
,
ret
);
WSASetLastError
(
0xdeadbeef
);
ret
=
recv
(
server
,
buffer
,
sizeof
(
buffer
),
0
);
ok
(
ret
==
-
1
,
"got %d
\n
"
,
ret
);
todo_wine
ok
(
WSAGetLastError
()
==
WSAECONNABORTED
,
"got error %u
\n
"
,
WSAGetLastError
());
closesocket
(
server
);
/* Test shutting down with async I/O pending. */
client
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
...
...
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