[IPHLPAPI_APITEST] Test failure fixes (#8214)

- liCreateTimestamp isn't set in TCP tables on several Windows versions. If it isn't, then we can't compare it to the current system time; so don't.
- GetInterfaceName had some test failures unique to Vista, guard them.
- icmp: Accept either ERROR_INVALID_HANDLE  or ERROR_INVALID_PARAMETER as a last error in a couple tests.
This commit is contained in:
Carl J. Bialorucki 2025-07-04 19:14:24 -06:00 committed by GitHub
parent ea9e2812c6
commit 410db43f20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 51 additions and 34 deletions

View file

@ -187,10 +187,7 @@ test_GetNetworkParams(VOID)
HeapFree(GetProcessHeap(), 0, FixedInfo);
skip("FixedInfo->DomainName is NULL. Can't proceed\n");
}
if(OrigDhcpDomainNameExists)
ok(strcmp(FixedInfo->DomainName, OrigDhcpDomainName) == 0, "FixedInfo->DomainName is wrong '%s' != '%s'\n", FixedInfo->DomainName, OrigDhcpDomainName);
else
ok(strcmp(FixedInfo->DomainName, OrigDomainName) == 0, "FixedInfo->DomainName is wrong '%s' != '%s'\n", FixedInfo->DomainName, OrigDomainName);
ok(strcmp(FixedInfo->DomainName, OrigDomainName) == 0, "FixedInfo->DomainName is wrong '%s' != '%s'\n", FixedInfo->DomainName, OrigDomainName);
if (!OrigDhcpHostnameExists)
{
ErrorCode = WriteRegistryValue("DhcpHostname", ROSTESTDHCPHOST);