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
511c76df
Commit
511c76df
authored
Nov 09, 2009
by
André Hentschel
Committed by
Alexandre Julliard
Nov 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test for initial state of SIOCATMARK.
parent
6b22861b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
sock.c
dlls/ws2_32/tests/sock.c
+8
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
511c76df
...
...
@@ -2453,6 +2453,7 @@ static void test_ioctlsocket(void)
int
ret
;
static
const
LONG
cmds
[]
=
{
FIONBIO
,
FIONREAD
,
SIOCATMARK
};
UINT
i
;
u_long
arg
=
0
;
sock
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
ok
(
sock
!=
INVALID_SOCKET
,
"Creating the socket failed: %d
\n
"
,
WSAGetLastError
());
...
...
@@ -2470,6 +2471,13 @@ static void test_ioctlsocket(void)
ret
=
WSAGetLastError
();
ok
(
ret
==
WSAEFAULT
,
"expected WSAEFAULT, got %d instead
\n
"
,
ret
);
}
/* A fresh and not connected socket has no urgent data, this test shows
* that normal(not urgent) data returns a non-zero value for SIOCATMARK. */
ret
=
ioctlsocket
(
sock
,
SIOCATMARK
,
&
arg
);
if
(
ret
!=
SOCKET_ERROR
)
todo_wine
ok
(
arg
,
"expected a non-zero value
\n
"
);
}
static
int
drain_pause
=
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