Commit 477df623 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 4c9e3051
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment