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
31d1175f
Commit
31d1175f
authored
Feb 10, 2020
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Print a message when skipping GetUdp6Table tests.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3991bca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+23
-20
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
31d1175f
...
...
@@ -2233,37 +2233,40 @@ static void test_ConvertLengthToIpv4Mask(void)
static
void
test_GetUdp6Table
(
void
)
{
if
(
pGetUdp6Table
)
{
DWORD
apiReturn
;
ULONG
dwSize
=
0
;
if
(
!
pGetUdp6Table
)
{
win_skip
(
"GetUdp6Table not available
\n
"
);
return
;
}
apiReturn
=
pGetUdp6Table
(
NULL
,
&
dwSize
,
FALSE
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetUdp6Table is not supported
\n
"
);
return
;
skip
(
"GetUdp6Table is not supported
\n
"
);
return
;
}
ok
(
apiReturn
==
ERROR_INSUFFICIENT_BUFFER
,
"GetUdp6Table(NULL, &dwSize, FALSE) returned %d, expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
apiReturn
);
"GetUdp6Table(NULL, &dwSize, FALSE) returned %d, expected ERROR_INSUFFICIENT_BUFFER
\n
"
,
apiReturn
);
if
(
apiReturn
==
ERROR_INSUFFICIENT_BUFFER
)
{
PMIB_UDP6TABLE
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
PMIB_UDP6TABLE
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
apiReturn
=
pGetUdp6Table
(
buf
,
&
dwSize
,
FALSE
);
ok
(
apiReturn
==
NO_ERROR
,
"GetUdp6Table(buf, &dwSize, FALSE) returned %d, expected NO_ERROR
\n
"
,
apiReturn
);
apiReturn
=
pGetUdp6Table
(
buf
,
&
dwSize
,
FALSE
);
ok
(
apiReturn
==
NO_ERROR
,
"GetUdp6Table(buf, &dwSize, FALSE) returned %d, expected NO_ERROR
\n
"
,
apiReturn
);
if
(
apiReturn
==
NO_ERROR
&&
winetest_debug
>
1
)
{
DWORD
i
;
trace
(
"UDP6 table: %u entries
\n
"
,
buf
->
dwNumEntries
);
for
(
i
=
0
;
i
<
buf
->
dwNumEntries
;
i
++
)
trace
(
"%u: %s%%%u:%u
\n
"
,
i
,
ntoa6
(
&
buf
->
table
[
i
].
dwLocalAddr
),
ntohs
(
buf
->
table
[
i
].
dwLocalScopeId
),
ntohs
(
buf
->
table
[
i
].
dwLocalPort
)
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
if
(
apiReturn
==
NO_ERROR
&&
winetest_debug
>
1
)
{
DWORD
i
;
trace
(
"UDP6 table: %u entries
\n
"
,
buf
->
dwNumEntries
);
for
(
i
=
0
;
i
<
buf
->
dwNumEntries
;
i
++
)
trace
(
"%u: %s%%%u:%u
\n
"
,
i
,
ntoa6
(
&
buf
->
table
[
i
].
dwLocalAddr
),
ntohs
(
buf
->
table
[
i
].
dwLocalScopeId
),
ntohs
(
buf
->
table
[
i
].
dwLocalPort
)
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
}
}
static
void
test_ParseNetworkString
(
void
)
...
...
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