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
9eaf92d6
Commit
9eaf92d6
authored
Mar 08, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Mar 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/test: Don't test unsupported IP_MULTICAST_TTL on NT4.
parent
a65ae0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
sock.c
dlls/ws2_32/tests/sock.c
+16
-9
No files found.
dlls/ws2_32/tests/sock.c
View file @
9eaf92d6
...
...
@@ -1380,17 +1380,24 @@ todo_wine
s
=
socket
(
AF_INET
,
SOCK_DGRAM
,
0
);
ok
(
s
!=
INVALID_SOCKET
,
"Failed to create socket
\n
"
);
size
=
sizeof
(
i
);
for
(
i
=
0
;
i
<
4
;
i
++
)
i
=
0x0000000a
;
err
=
setsockopt
(
s
,
IPPROTO_IP
,
IP_MULTICAST_TTL
,
(
char
*
)
&
i
,
size
);
if
(
!
err
)
{
int
k
,
j
;
const
int
tests
[]
=
{
0xffffff0a
,
0xffff000b
,
0xff00000c
,
0x0000000d
};
err
=
setsockopt
(
s
,
IPPROTO_IP
,
IP_MULTICAST_TTL
,
(
char
*
)
&
tests
[
i
],
i
+
1
);
ok
(
!
err
,
"Test [%d] Expected 0, got %d
\n
"
,
i
,
err
);
err
=
getsockopt
(
s
,
IPPROTO_IP
,
IP_MULTICAST_TTL
,
(
char
*
)
&
k
,
&
size
);
ok
(
!
err
,
"Test [%d] Expected 0, got %d
\n
"
,
i
,
err
);
j
=
i
!=
3
?
tests
[
i
]
&
((
1
<<
(
i
+
1
)
*
8
)
-
1
)
:
tests
[
i
];
ok
(
k
==
j
,
"Test [%d] Expected 0x%x, got 0x%x
\n
"
,
i
,
j
,
k
);
for
(
i
=
0
;
i
<
4
;
i
++
)
{
int
k
,
j
;
const
int
tests
[]
=
{
0xffffff0a
,
0xffff000b
,
0xff00000c
,
0x0000000d
};
err
=
setsockopt
(
s
,
IPPROTO_IP
,
IP_MULTICAST_TTL
,
(
char
*
)
&
tests
[
i
],
i
+
1
);
ok
(
!
err
,
"Test [%d] Expected 0, got %d
\n
"
,
i
,
err
);
err
=
getsockopt
(
s
,
IPPROTO_IP
,
IP_MULTICAST_TTL
,
(
char
*
)
&
k
,
&
size
);
ok
(
!
err
,
"Test [%d] Expected 0, got %d
\n
"
,
i
,
err
);
j
=
i
!=
3
?
tests
[
i
]
&
((
1
<<
(
i
+
1
)
*
8
)
-
1
)
:
tests
[
i
];
ok
(
k
==
j
,
"Test [%d] Expected 0x%x, got 0x%x
\n
"
,
i
,
j
,
k
);
}
}
else
win_skip
(
"IP_MULTICAST_TTL is unsupported
\n
"
);
closesocket
(
s
);
/* test SO_PROTOCOL_INFOA invalid parameters */
...
...
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