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
21341996
Commit
21341996
authored
Jun 15, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Add UDP select() test for unbound socket.
parent
f9a83377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
sock.c
dlls/ws2_32/tests/sock.c
+14
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
21341996
...
...
@@ -3868,6 +3868,20 @@ todo_wine
ok
(
GetLastError
()
==
WSAENOTSOCK
,
"expected 10038, got %d
\n
"
,
GetLastError
());
WaitForSingleObject
(
thread_handle
,
1000
);
closesocket
(
fdRead
);
/* test UDP behavior of unbound sockets */
select_timeout
.
tv_sec
=
0
;
select_timeout
.
tv_usec
=
250000
;
fdWrite
=
socket
(
AF_INET
,
SOCK_DGRAM
,
IPPROTO_UDP
);
ok
(
fdWrite
!=
INVALID_SOCKET
,
"socket call failed
\n
"
);
FD_ZERO_ALL
();
FD_SET_ALL
(
fdWrite
);
ret
=
select
(
0
,
&
readfds
,
&
writefds
,
&
exceptfds
,
&
select_timeout
);
todo_wine
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
todo_wine
ok
(
FD_ISSET
(
fdWrite
,
&
writefds
),
"fdWrite socket is not in the set
\n
"
);
closesocket
(
fdWrite
);
}
#undef FD_SET_ALL
#undef FD_ZERO_ALL
...
...
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