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
6495e66b
Commit
6495e66b
authored
Feb 02, 2006
by
Phil Lodwick
Committed by
Alexandre Julliard
Feb 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsock/tests: Add a todo_wine test for select.
parent
9cf319d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
sock.c
dlls/winsock/tests/sock.c
+26
-0
No files found.
dlls/winsock/tests/sock.c
View file @
6495e66b
...
...
@@ -1317,6 +1317,30 @@ static void test_WSAStringToAddressW(void)
"WSAStringToAddressW() failed unexpectedly: %d
\n
"
,
GLE
);
}
static
void
test_select
(
void
)
{
SOCKET
fd
;
fd
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
fd
!=
INVALID_SOCKET
)
{
fd_set
readfds
;
struct
timeval
select_timeout
;
FD_ZERO
(
&
readfds
);
FD_SET
(
fd
,
&
readfds
);
select_timeout
.
tv_sec
=
2
;
select_timeout
.
tv_usec
=
0
;
todo_wine
{
if
(
select
((
int
)
fd
+
1
,
&
readfds
,
NULL
,
NULL
,
&
select_timeout
)
!=
SOCKET_ERROR
)
ok
(
!
FD_ISSET
(
fd
,
&
readfds
),
"FD should not be set
\n
"
);
}
closesocket
(
fd
);
}
}
/**************** Main program ***************/
START_TEST
(
sock
)
...
...
@@ -1344,5 +1368,7 @@ START_TEST( sock )
test_WSAStringToAddressA
();
test_WSAStringToAddressW
();
test_select
();
Exit
();
}
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