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
99012fe7
Commit
99012fe7
authored
Feb 08, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Remove unneeded assignments (LLVM/Clang).
parent
7b4cf0be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
sock.c
dlls/ws2_32/tests/sock.c
+3
-11
No files found.
dlls/ws2_32/tests/sock.c
View file @
99012fe7
...
...
@@ -734,7 +734,7 @@ static void WINAPI event_client ( client_params *par )
tmp
=
WaitForSingleObject
(
event
,
INFINITE
);
ok
(
tmp
==
WAIT_OBJECT_0
,
"event_client (%x): wait for connect event failed: %d
\n
"
,
id
,
tmp
);
err
=
WSAEnumNetworkEvents
(
mem
->
s
,
event
,
&
wsa_events
);
wsa_ok
(
err
,
0
==
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
);
ok
(
err
==
0
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
,
id
,
err
);
err
=
wsa_events
.
iErrorCode
[
FD_CONNECT_BIT
];
ok
(
err
==
0
,
"event_client (%x): connect error: %d
\n
"
,
id
,
err
);
if
(
err
)
goto
out
;
...
...
@@ -755,7 +755,7 @@ static void WINAPI event_client ( client_params *par )
ok
(
err
==
WAIT_OBJECT_0
,
"event_client (%x): wait failed
\n
"
,
id
);
err
=
WSAEnumNetworkEvents
(
mem
->
s
,
event
,
&
wsa_events
);
wsa_ok
(
err
,
0
==
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
);
ok
(
err
==
0
,
"event_client (%x): WSAEnumNetworkEvents error: %d
\n
"
,
id
,
err
);
if
(
wsa_events
.
lNetworkEvents
&
FD_WRITE
)
{
...
...
@@ -2580,8 +2580,7 @@ static void test_gethostbyname_hack(void)
}
}
he
=
NULL
;
he
=
gethostbyname
(
"nonexistent.winehq.org"
);
gethostbyname
(
"nonexistent.winehq.org"
);
/* Don't check for the return value, as some braindead ISPs will kindly
* resolve nonexistent host names to addresses of the ISP's spam pages. */
}
...
...
@@ -3977,7 +3976,6 @@ static void test_ConnectEx(void)
acceptor
=
accept
(
listener
,
NULL
,
NULL
);
if
(
acceptor
!=
INVALID_SOCKET
)
{
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
}
buffer
[
0
]
=
'1'
;
...
...
@@ -4238,7 +4236,6 @@ static void test_AcceptEx(void)
closesocket
(
connector
);
connector
=
INVALID_SOCKET
;
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
/* Test short reads */
...
...
@@ -4276,7 +4273,6 @@ static void test_AcceptEx(void)
closesocket
(
connector
);
connector
=
INVALID_SOCKET
;
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
/* Test CF_DEFER & AcceptEx interaction */
...
...
@@ -4387,7 +4383,6 @@ static void test_AcceptEx(void)
closesocket
(
connector
);
connector
=
INVALID_SOCKET
;
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
/* clean up in case of failures */
while
((
acceptor
=
accept
(
listener
,
NULL
,
NULL
))
!=
INVALID_SOCKET
)
...
...
@@ -4424,7 +4419,6 @@ static void test_AcceptEx(void)
ok
(
bytesReturned
==
0
,
"bytesReturned isn't supposed to be %d
\n
"
,
bytesReturned
);
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
/* Test closing with pending requests */
...
...
@@ -4439,7 +4433,6 @@ static void test_AcceptEx(void)
ok
(
bret
==
FALSE
&&
WSAGetLastError
()
==
ERROR_IO_PENDING
,
"AcceptEx returned %d + errno %d
\n
"
,
bret
,
WSAGetLastError
());
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
dwret
=
WaitForSingleObject
(
overlapped
.
hEvent
,
1000
);
todo_wine
ok
(
dwret
==
WAIT_OBJECT_0
||
broken
(
dwret
==
WAIT_TIMEOUT
)
/* NT4/2000 */
,
...
...
@@ -4472,7 +4465,6 @@ static void test_AcceptEx(void)
ok
(
dwret
==
WAIT_TIMEOUT
,
"Waiting for timeout failed with %d + errno %d
\n
"
,
dwret
,
GetLastError
());
closesocket
(
acceptor
);
acceptor
=
INVALID_SOCKET
;
acceptor
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
);
if
(
acceptor
==
INVALID_SOCKET
)
{
...
...
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