[PATCH 5/5] dnsapi/tests: Add a query test.
Hans Leidekker
hans at codeweavers.com
Tue Mar 30 03:35:30 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/dnsapi/tests/query.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/dnsapi/tests/query.c b/dlls/dnsapi/tests/query.c
index 237dfd6ae7c..74669005a33 100644
--- a/dlls/dnsapi/tests/query.c
+++ b/dlls/dnsapi/tests/query.c
@@ -38,6 +38,11 @@ static void test_DnsQuery(void)
DNS_RECORDW *rec;
DNS_STATUS status;
+ rec = NULL;
+ status = DnsQuery_W(L"winehq.org", DNS_TYPE_A, DNS_QUERY_STANDARD, NULL, &rec, NULL);
+ ok(status == ERROR_SUCCESS, "DnsQuery_W(%s) => %d\n", wine_dbgstr_w(name), status);
+ DnsRecordListFree(rec, DnsFreeRecordList);
+
status = DnsQuery_W(L"", DNS_TYPE_SRV, DNS_QUERY_STANDARD, NULL, &rec, NULL);
ok(status == DNS_ERROR_RCODE_NAME_ERROR || status == DNS_INFO_NO_RECORDS || status == ERROR_INVALID_NAME /* XP */, "got %u\n", status);
--
2.30.2
More information about the wine-devel
mailing list