dnsapi/tests: Ignore OPT records in the CNAME tests.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54848
This commit is contained in:
Francois Gouget 2023-05-16 03:08:33 +02:00 committed by Alexandre Julliard
parent 4c9e305132
commit 477df6231a

View file

@ -110,7 +110,7 @@ static void test_DnsQuery(void)
{
ok(wcscmp(domain, ptr->pName), "did not expect a record for %s\n",
wine_dbgstr_w(ptr->pName));
ok(ptr->wType == DNS_TYPE_A || ptr->wType == DNS_TYPE_AAAA,
ok(ptr->wType == DNS_TYPE_A || ptr->wType == DNS_TYPE_AAAA || ptr->wType == DNS_TYPE_OPT,
"unexpected record type %d\n", ptr->wType);
ptr = ptr->pNext;
}
@ -145,10 +145,13 @@ static void test_DnsQuery(void)
while (ptr)
{
ok(wcscmp(domain, ptr->pName), "did not expect a record for %s\n",
wine_dbgstr_w(ptr->pName));
ok(ptr->wType == DNS_TYPE_A || ptr->wType == DNS_TYPE_AAAA,
"unexpected record type %d\n", ptr->wType);
if (ptr->wType != DNS_TYPE_OPT)
{
ok(wcscmp(domain, ptr->pName), "did not expect a record for %s\n",
wine_dbgstr_w(ptr->pName));
ok(ptr->wType == DNS_TYPE_A || ptr->wType == DNS_TYPE_AAAA,
"unexpected record type %d\n", ptr->wType);
}
ptr = ptr->pNext;
}
DnsRecordListFree(rec, DnsFreeRecordList);