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
3282d7ab
Commit
3282d7ab
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 GetBestInterface.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
parent
9f267c22
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 @
3282d7ab
...
...
@@ -1457,9 +1457,32 @@ static void testGetNetworkParams(void)
}
}
static
void
testGetBestInterface
(
void
)
{
DWORD
apiReturn
;
DWORD
bestIfIndex
;
apiReturn
=
GetBestInterface
(
INADDR_ANY
,
&
bestIfIndex
);
trace
(
"GetBestInterface([0.0.0.0], {%lu}) = %lu
\n
"
,
bestIfIndex
,
apiReturn
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetBestInterface is not supported
\n
"
);
return
;
}
apiReturn
=
GetBestInterface
(
INADDR_LOOPBACK
,
NULL
);
ok
(
apiReturn
==
ERROR_INVALID_PARAMETER
,
"GetBestInterface([127.0.0.1], NULL) returned %lu, expected %d
\n
"
,
apiReturn
,
ERROR_INVALID_PARAMETER
);
apiReturn
=
GetBestInterface
(
INADDR_LOOPBACK
,
&
bestIfIndex
);
ok
(
apiReturn
==
NO_ERROR
,
"GetBestInterface([127.0.0.1], {%lu}) returned %lu, expected %d
\n
"
,
bestIfIndex
,
apiReturn
,
NO_ERROR
);
}
/*
still-to-be-tested 98-onward functions:
GetBestInterface
GetBestRoute
IpReleaseAddress
IpRenewAddress
...
...
@@ -1469,6 +1492,7 @@ static DWORD CALLBACK testWin98Functions(void *p)
testGetInterfaceInfo
();
testGetAdaptersInfo
();
testGetNetworkParams
();
testGetBestInterface
();
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