Hans Leidekker : dnsapi/tests: Add a query test.

Alexandre Julliard julliard at winehq.org
Tue Mar 30 15:19:50 CDT 2021


Module: wine
Branch: master
Commit: 7ff591d7dee84be729c037e88a25cc307ad38cf2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7ff591d7dee84be729c037e88a25cc307ad38cf2

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Mar 30 10:35:30 2021 +0200

dnsapi/tests: Add a query test.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
 




More information about the wine-cvs mailing list