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
d7f21681
Commit
d7f21681
authored
Jul 31, 2013
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Fix bad usage of WSAGetLastError() in tests.
parent
47337ed1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
sock.c
dlls/ws2_32/tests/sock.c
+8
-6
No files found.
dlls/ws2_32/tests/sock.c
View file @
d7f21681
...
...
@@ -1766,8 +1766,8 @@ todo_wine
todo_wine
{
size
=
sizeof
(
socktype
);
socktype
=
0xdead
;
ok
(
!
getsockopt
(
sock
,
SOL_SOCKET
,
SO_TYPE
,
(
char
*
)
&
socktype
,
&
size
),
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
err
=
getsockopt
(
sock
,
SOL_SOCKET
,
SO_TYPE
,
(
char
*
)
&
socktype
,
&
size
);
ok
(
!
err
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
ok
(
socktype
==
pi
[
0
].
iSocketType
,
"Wrong socket type, expected %d received %d
\n
"
,
pi
[
0
].
iSocketType
,
socktype
);
}
...
...
@@ -1783,9 +1783,9 @@ todo_wine
size
=
sizeof
(
socktype
);
socktype
=
0xdead
;
err
=
getsockopt
(
sock
,
SOL_SOCKET
,
SO_TYPE
,
(
char
*
)
&
socktype
,
&
size
);
todo_wine
ok
(
!
getsockopt
(
sock
,
SOL_SOCKET
,
SO_TYPE
,
(
char
*
)
&
socktype
,
&
size
),
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
ok
(
!
err
,
"getsockopt failed with %d
\n
"
,
WSAGetLastError
());
for
(
j
=
0
;
j
<
items
;
j
++
)
{
...
...
@@ -2508,14 +2508,16 @@ static void test_listen(void)
ok
(
ret
==
WSAEINVAL
,
"expected 10022, received %d
\n
"
,
ret
);
acceptc
=
0xdead
;
ok
(
!
getsockopt
(
fdA
,
SOL_SOCKET
,
SO_ACCEPTCONN
,
(
char
*
)
&
acceptc
,
&
olen
),
"getsockopt failed
\n
"
);
ret
=
getsockopt
(
fdA
,
SOL_SOCKET
,
SO_ACCEPTCONN
,
(
char
*
)
&
acceptc
,
&
olen
);
ok
(
!
ret
,
"getsockopt failed
\n
"
);
ok
(
acceptc
==
0
,
"SO_ACCEPTCONN should be 0, received %d
\n
"
,
acceptc
);
ok
(
!
listen
(
fdA
,
0
),
"listen failed
\n
"
);
ok
(
!
listen
(
fdA
,
SOMAXCONN
),
"double listen failed
\n
"
);
acceptc
=
0xdead
;
ok
(
!
getsockopt
(
fdA
,
SOL_SOCKET
,
SO_ACCEPTCONN
,
(
char
*
)
&
acceptc
,
&
olen
),
"getsockopt failed
\n
"
);
ret
=
getsockopt
(
fdA
,
SOL_SOCKET
,
SO_ACCEPTCONN
,
(
char
*
)
&
acceptc
,
&
olen
);
ok
(
!
ret
,
"getsockopt failed
\n
"
);
ok
(
acceptc
==
1
,
"SO_ACCEPTCONN should be 1, received %d
\n
"
,
acceptc
);
SetLastError
(
0xdeadbeef
);
...
...
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