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
a1d177c6
Commit
a1d177c6
authored
Aug 07, 2011
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Add MSG_PEEK tests on recv().
parent
8032d3ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
sock.c
dlls/ws2_32/tests/sock.c
+7
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
a1d177c6
...
@@ -2324,6 +2324,7 @@ static void test_select(void)
...
@@ -2324,6 +2324,7 @@ static void test_select(void)
fd_set
readfds
,
writefds
,
exceptfds
;
fd_set
readfds
,
writefds
,
exceptfds
;
unsigned
int
maxfd
;
unsigned
int
maxfd
;
int
ret
;
int
ret
;
char
buffer
;
struct
timeval
select_timeout
;
struct
timeval
select_timeout
;
select_thread_params
thread_params
;
select_thread_params
thread_params
;
HANDLE
thread_handle
;
HANDLE
thread_handle
;
...
@@ -2379,6 +2380,8 @@ static void test_select(void)
...
@@ -2379,6 +2380,8 @@ static void test_select(void)
ok
(
(
thread_params
.
ReadKilled
)
||
ok
(
(
thread_params
.
ReadKilled
)
||
broken
(
thread_params
.
ReadKilled
==
0
),
/*Win98*/
broken
(
thread_params
.
ReadKilled
==
0
),
/*Win98*/
"closesocket did not wakeup select
\n
"
);
"closesocket did not wakeup select
\n
"
);
ret
=
recv
(
fdRead
,
&
buffer
,
1
,
MSG_PEEK
);
ok
(
(
ret
==
-
1
),
"peek at closed socket expected -1 got %d
\n
"
,
ret
);
/* Test selecting invalid handles */
/* Test selecting invalid handles */
FD_ZERO
(
&
readfds
);
FD_ZERO
(
&
readfds
);
...
@@ -3627,6 +3630,10 @@ static void test_events(int useMessages)
...
@@ -3627,6 +3630,10 @@ static void test_events(int useMessages)
ok
(
ret
==
100
,
"Failed to send buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok
(
ret
==
100
,
"Failed to send buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
ret
=
recv
(
src
,
buffer
,
1
,
MSG_PEEK
);
ok
(
ret
==
1
,
"Failed to peek at recv buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
ret
=
recv
(
src
,
buffer
,
50
,
0
);
ret
=
recv
(
src
,
buffer
,
50
,
0
);
ok
(
ret
==
50
,
"Failed to recv buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok
(
ret
==
50
,
"Failed to recv buffer %d err %d
\n
"
,
ret
,
GetLastError
());
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
ok_event_seq
(
src
,
hEvent
,
read_seq
,
NULL
,
0
);
...
...
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