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
da8defe5
Commit
da8defe5
authored
Sep 16, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Add more tests for iosb contents while a recv is pending.
parent
25b05840
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
afd.c
dlls/ws2_32/tests/afd.c
+4
-3
sock.c
dlls/ws2_32/tests/sock.c
+4
-0
No files found.
dlls/ws2_32/tests/afd.c
View file @
da8defe5
...
...
@@ -1466,13 +1466,14 @@ static void test_recv(void)
IOCTL_AFD_RECV
,
&
params
,
sizeof
(
params
)
-
1
,
NULL
,
0
);
ok
(
ret
==
STATUS_INVALID_PARAMETER
,
"got %#x
\n
"
,
ret
);
memset
(
&
io
,
0
,
sizeof
(
io
));
io
.
Status
=
0xdeadbeef
;
io
.
Information
=
0xdeadbeef
;
memset
(
buffer
,
0xcc
,
sizeof
(
buffer
));
ret
=
NtDeviceIoControlFile
((
HANDLE
)
client
,
event
,
NULL
,
NULL
,
&
io
,
IOCTL_AFD_RECV
,
&
params
,
sizeof
(
params
),
NULL
,
0
);
ok
(
ret
==
STATUS_PENDING
,
"got %#x
\n
"
,
ret
);
ok
(
!
io
.
Status
,
"got status %#lx
\n
"
,
io
.
Status
);
ok
(
!
io
.
Information
,
"got information %#Ix
\n
"
,
io
.
Information
);
ok
(
io
.
Status
==
0xdeadbeef
,
"got status %#lx
\n
"
,
io
.
Status
);
ok
(
io
.
Information
==
0xdeadbeef
,
"got information %#Ix
\n
"
,
io
.
Information
);
/* These structures need not remain valid. */
memset
(
&
params
,
0xcc
,
sizeof
(
params
));
...
...
dlls/ws2_32/tests/sock.c
View file @
da8defe5
...
...
@@ -12208,11 +12208,15 @@ static void test_nonblocking_async_recv(void)
memset
(
buffer
,
0
,
sizeof
(
buffer
));
WSASetLastError
(
0xdeadbeef
);
overlapped
.
Internal
=
0xdeadbeef
;
overlapped
.
InternalHigh
=
0xdeadbeef
;
ret
=
WSARecv
(
client
,
&
wsabuf
,
1
,
NULL
,
&
flags
,
&
overlapped
,
NULL
);
ok
(
ret
==
-
1
,
"got %d
\n
"
,
ret
);
ok
(
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"got error %u
\n
"
,
WSAGetLastError
());
ret
=
WaitForSingleObject
((
HANDLE
)
client
,
0
);
ok
(
ret
==
WAIT_TIMEOUT
,
"expected timeout
\n
"
);
ok
(
overlapped
.
Internal
==
STATUS_PENDING
,
"got status %#lx
\n
"
,
(
NTSTATUS
)
overlapped
.
Internal
);
ok
(
overlapped
.
InternalHigh
==
0xdeadbeef
,
"got size %Iu
\n
"
,
overlapped
.
InternalHigh
);
ret
=
send
(
server
,
"data"
,
4
,
0
);
ok
(
ret
==
4
,
"got %d
\n
"
,
ret
);
...
...
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