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
68cfc95a
Commit
68cfc95a
authored
Jul 15, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Work around a Linux bug.
This was reported upstream:
https://bugzilla.kernel.org/show_bug.cgi?id=216259
parent
a83c3736
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sock.c
dlls/ws2_32/tests/sock.c
+9
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
68cfc95a
...
@@ -4422,6 +4422,7 @@ static void test_select(void)
...
@@ -4422,6 +4422,7 @@ static void test_select(void)
ret
=
getsockopt
(
fdWrite
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
id
,
&
len
);
ret
=
getsockopt
(
fdWrite
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
id
,
&
len
);
ok
(
!
ret
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
ok
(
id
==
0
,
"expected 0, got %ld
\n
"
,
id
);
ok
(
id
==
0
,
"expected 0, got %ld
\n
"
,
id
);
set_blocking
(
fdRead
,
FALSE
);
/* When data is received the receiver gets the read descriptor */
/* When data is received the receiver gets the read descriptor */
ret
=
send
(
fdWrite
,
"1234"
,
4
,
0
);
ret
=
send
(
fdWrite
,
"1234"
,
4
,
0
);
...
@@ -4482,6 +4483,14 @@ static void test_select(void)
...
@@ -4482,6 +4483,14 @@ static void test_select(void)
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
ok
(
tmp_buf
[
0
]
==
'A'
,
"expected 'A', got 0x%02X
\n
"
,
tmp_buf
[
0
]);
ok
(
tmp_buf
[
0
]
==
'A'
,
"expected 'A', got 0x%02X
\n
"
,
tmp_buf
[
0
]);
/* Linux has some odd behaviour (probably a bug) where receiving OOB,
* setting SO_OOBINLINE, and then calling recv() again will cause the same
* data to be received twice. Avoid that messing with further tests by
* calling recv() here. */
ret
=
recv
(
fdRead
,
tmp_buf
,
sizeof
(
tmp_buf
),
0
);
todo_wine
ok
(
ret
==
-
1
,
"got %d
\n
"
,
ret
);
todo_wine
ok
(
GetLastError
()
==
WSAEWOULDBLOCK
,
"got error %u
\n
"
,
WSAGetLastError
());
/* When the connection is closed the socket is set in the read descriptor */
/* When the connection is closed the socket is set in the read descriptor */
ret
=
closesocket
(
fdRead
);
ret
=
closesocket
(
fdRead
);
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ok
(
ret
==
0
,
"expected 0, 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