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
b4609ec1
Commit
b4609ec1
authored
Dec 29, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test selecting the same socket twice.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d7f41e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sock.c
dlls/ws2_32/tests/sock.c
+10
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
b4609ec1
...
...
@@ -3272,6 +3272,16 @@ static void test_select(void)
ok
(
ret
==
1
,
"select returned %d
\n
"
,
ret
);
ok
(
FD_ISSET
(
fdWrite
,
&
writefds
),
"fdWrite socket is not in the set
\n
"
);
/* select the same socket twice */
writefds
.
fd_count
=
2
;
writefds
.
fd_array
[
0
]
=
fdWrite
;
writefds
.
fd_array
[
1
]
=
fdWrite
;
ret
=
select
(
0
,
NULL
,
&
writefds
,
NULL
,
&
select_timeout
);
ok
(
ret
==
1
,
"select returned %d
\n
"
,
ret
);
ok
(
writefds
.
fd_count
==
1
,
"got count %u
\n
"
,
writefds
.
fd_count
);
ok
(
writefds
.
fd_array
[
0
]
==
fdWrite
,
"got fd %#Ix
\n
"
,
writefds
.
fd_array
[
0
]);
ok
(
writefds
.
fd_array
[
1
]
==
fdWrite
,
"got fd %#Ix
\n
"
,
writefds
.
fd_array
[
1
]);
/* tests for overlapping fd_set pointers */
FD_ZERO
(
&
readfds
);
FD_SET
(
fdWrite
,
&
readfds
);
...
...
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