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
ac9842bc
Commit
ac9842bc
authored
Jan 16, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Add tests for GetBestRoute.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
parent
3282d7ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+25
-1
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
ac9842bc
...
...
@@ -1481,9 +1481,32 @@ static void testGetBestInterface(void)
bestIfIndex
,
apiReturn
,
NO_ERROR
);
}
static
void
testGetBestRoute
(
void
)
{
DWORD
apiReturn
;
MIB_IPFORWARDROW
bestRoute
;
apiReturn
=
GetBestRoute
(
INADDR_ANY
,
0
,
&
bestRoute
);
trace
(
"GetBestRoute([0.0.0.0], 0, [...]) = %lu
\n
"
,
apiReturn
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetBestRoute is not supported
\n
"
);
return
;
}
apiReturn
=
GetBestRoute
(
INADDR_ANY
,
0
,
NULL
);
ok
(
apiReturn
==
ERROR_INVALID_PARAMETER
,
"GetBestRoute([0.0.0.0], 0, NULL) returned %lu, expected %d
\n
"
,
apiReturn
,
ERROR_INVALID_PARAMETER
);
apiReturn
=
GetBestRoute
(
INADDR_LOOPBACK
,
0
,
&
bestRoute
);
ok
(
apiReturn
==
NO_ERROR
,
"GetBestRoute([127.0.0.1], 0, NULL) returned %lu, expected %d
\n
"
,
apiReturn
,
NO_ERROR
);
}
/*
still-to-be-tested 98-onward functions:
GetBestRoute
IpReleaseAddress
IpRenewAddress
*/
...
...
@@ -1493,6 +1516,7 @@ static DWORD CALLBACK testWin98Functions(void *p)
testGetAdaptersInfo
();
testGetNetworkParams
();
testGetBestInterface
();
testGetBestRoute
();
return
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