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
2b345484
Commit
2b345484
authored
Aug 25, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Aug 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Add tests for setsockopt with invalid levels.
parent
a563d670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
sock.c
dlls/ws2_32/tests/sock.c
+17
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
2b345484
...
...
@@ -1018,6 +1018,23 @@ static void test_set_getsockopt(void)
ok
(
lasterr
==
WSAEFAULT
,
"setsockopt with optval being a value "
"returned 0x%08x, not WSAEFAULT(0x%08x)
\n
"
,
lasterr
,
WSAEFAULT
);
/* SO_RCVTIMEO with invalid values for level */
size
=
sizeof
(
timeout
);
timeout
=
SOCKTIMEOUT1
;
SetLastError
(
0xdeadbeef
);
err
=
setsockopt
(
s
,
0xffffffff
,
SO_RCVTIMEO
,
(
char
*
)
&
timeout
,
size
);
ok
(
(
err
==
SOCKET_ERROR
)
&&
(
WSAGetLastError
()
==
WSAEINVAL
),
"got %d with %d (expected SOCKET_ERROR with WSAEINVAL
\n
"
,
err
,
WSAGetLastError
());
timeout
=
SOCKTIMEOUT1
;
SetLastError
(
0xdeadbeef
);
err
=
setsockopt
(
s
,
0x00008000
,
SO_RCVTIMEO
,
(
char
*
)
&
timeout
,
size
);
ok
(
(
err
==
SOCKET_ERROR
)
&&
(
WSAGetLastError
()
==
WSAEINVAL
),
"got %d with %d (expected SOCKET_ERROR with WSAEINVAL
\n
"
,
err
,
WSAGetLastError
());
closesocket
(
s
);
}
...
...
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