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
f93bf5ae
Commit
f93bf5ae
authored
Aug 14, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Fix a couple of test failures.
parent
bc334c67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+18
-17
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
f93bf5ae
...
...
@@ -1623,7 +1623,7 @@ static void test_CreateSortedAddressPairs(void)
ret
=
pCreateSortedAddressPairs
(
NULL
,
0
,
dst
,
1
,
0
,
&
pair
,
&
pair_count
);
ok
(
ret
==
NO_ERROR
,
"got %u
\n
"
,
ret
);
ok
(
pair
!=
NULL
,
"pair not set
\n
"
);
ok
(
pair_count
=
=
1
,
"got %u
\n
"
,
pair_count
);
ok
(
pair_count
>
=
1
,
"got %u
\n
"
,
pair_count
);
ok
(
pair
[
0
].
SourceAddress
!=
NULL
,
"src address not set
\n
"
);
ok
(
pair
[
0
].
DestinationAddress
!=
NULL
,
"dst address not set
\n
"
);
pFreeMibTable
(
pair
);
...
...
@@ -1638,7 +1638,7 @@ static void test_CreateSortedAddressPairs(void)
ret
=
pCreateSortedAddressPairs
(
NULL
,
0
,
dst
,
2
,
0
,
&
pair
,
&
pair_count
);
ok
(
ret
==
NO_ERROR
,
"got %u
\n
"
,
ret
);
ok
(
pair
!=
NULL
,
"pair not set
\n
"
);
ok
(
pair_count
=
=
2
,
"got %u
\n
"
,
pair_count
);
ok
(
pair_count
>
=
2
,
"got %u
\n
"
,
pair_count
);
ok
(
pair
[
0
].
SourceAddress
!=
NULL
,
"src address not set
\n
"
);
ok
(
pair
[
0
].
DestinationAddress
!=
NULL
,
"dst address not set
\n
"
);
ok
(
pair
[
1
].
SourceAddress
!=
NULL
,
"src address not set
\n
"
);
...
...
@@ -1700,11 +1700,11 @@ static void test_interface_identifier_conversion(void)
ok
(
!
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
!
luid
.
Info
.
IfType
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
memset
(
&
luid
,
0
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceIndexToLuid
(
index
,
&
luid
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
!
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
luid
.
Info
.
NetLuidIndex
!=
0xdead
,
"index not set
\n
"
);
ok
(
luid
.
Info
.
IfType
==
IF_TYPE_ETHERNET_CSMACD
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
/* ConvertInterfaceLuidToIndex */
...
...
@@ -1749,10 +1749,12 @@ static void test_interface_identifier_conversion(void)
ret
=
pConvertInterfaceGuidToLuid
(
&
guid
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
ret
);
memset
(
&
luid
,
0
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceGuidToLuid
(
&
guid
,
&
luid
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
!
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
luid
.
Info
.
NetLuidIndex
!=
0xdead
,
"index not set
\n
"
);
ok
(
luid
.
Info
.
IfType
==
IF_TYPE_ETHERNET_CSMACD
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
/* ConvertInterfaceLuidToNameW */
ret
=
pConvertInterfaceLuidToNameW
(
NULL
,
NULL
,
0
);
...
...
@@ -1796,42 +1798,42 @@ static void test_interface_identifier_conversion(void)
ret
=
pConvertInterfaceNameToLuidW
(
NULL
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
ret
);
memset
(
&
luid
,
0xff
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceNameToLuidW
(
NULL
,
&
luid
);
ok
(
ret
==
ERROR_INVALID_NAME
,
"got %u
\n
"
,
ret
);
ok
(
!
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
!
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
luid
.
Info
.
NetLuidIndex
!=
0xdead
,
"index not set
\n
"
);
ok
(
!
luid
.
Info
.
IfType
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
ret
=
pConvertInterfaceNameToLuidW
(
nameW
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
ret
);
memset
(
&
luid
,
0xff
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceNameToLuidW
(
nameW
,
&
luid
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
!
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
luid
.
Info
.
NetLuidIndex
!=
0xdead
,
"index not set
\n
"
);
ok
(
luid
.
Info
.
IfType
==
IF_TYPE_ETHERNET_CSMACD
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
/* ConvertInterfaceNameToLuidA */
ret
=
pConvertInterfaceNameToLuidA
(
NULL
,
NULL
);
ok
(
ret
==
ERROR_INVALID_NAME
,
"got %u
\n
"
,
ret
);
memset
(
&
luid
,
0xff
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceNameToLuidA
(
NULL
,
&
luid
);
ok
(
ret
==
ERROR_INVALID_NAME
,
"got %u
\n
"
,
ret
);
ok
(
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
luid
.
Info
.
IfType
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
ok
(
luid
.
Info
.
Reserved
==
0xdead
,
"reserved set
\n
"
);
ok
(
luid
.
Info
.
NetLuidIndex
==
0xdead
,
"index set
\n
"
);
ok
(
luid
.
Info
.
IfType
==
0xdead
,
"type set
\n
"
);
ret
=
pConvertInterfaceNameToLuidA
(
nameA
,
NULL
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %u
\n
"
,
ret
);
memset
(
&
luid
,
0xff
,
sizeof
(
luid
)
)
;
luid
.
Info
.
Reserved
=
luid
.
Info
.
NetLuidIndex
=
luid
.
Info
.
IfType
=
0xdead
;
ret
=
pConvertInterfaceNameToLuidA
(
nameA
,
&
luid
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
!
luid
.
Info
.
Reserved
,
"got %x
\n
"
,
luid
.
Info
.
Reserved
);
ok
(
luid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
luid
.
Info
.
NetLuidIndex
);
ok
(
luid
.
Info
.
NetLuidIndex
!=
0xdead
,
"index not set
\n
"
);
ok
(
luid
.
Info
.
IfType
==
IF_TYPE_ETHERNET_CSMACD
,
"got %u
\n
"
,
luid
.
Info
.
IfType
);
}
...
...
@@ -1864,7 +1866,6 @@ static void test_GetIfEntry2(void)
ret
=
pGetIfEntry2
(
&
row
);
ok
(
ret
==
NO_ERROR
,
"got %u
\n
"
,
ret
);
ok
(
row
.
InterfaceIndex
==
index
,
"got %u
\n
"
,
index
);
ok
(
row
.
InterfaceLuid
.
Info
.
NetLuidIndex
,
"got %u
\n
"
,
index
);
}
START_TEST
(
iphlpapi
)
...
...
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