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