Hans Leidekker : dnsapi/tests: Don't fail on query timeouts.
Alexandre Julliard
julliard at winehq.org
Wed Mar 31 15:55:14 CDT 2021
Module: wine
Branch: master
Commit: c511511e62d915986aa7c5a7ad9ab38248efb42c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c511511e62d915986aa7c5a7ad9ab38248efb42c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Mar 31 14:06:20 2021 +0200
dnsapi/tests: Don't fail on query timeouts.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dnsapi/tests/query.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/dnsapi/tests/query.c b/dlls/dnsapi/tests/query.c
index 74669005a33..d68e9383204 100644
--- a/dlls/dnsapi/tests/query.c
+++ b/dlls/dnsapi/tests/query.c
@@ -40,7 +40,12 @@ static void test_DnsQuery(void)
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);
+ if (status == ERROR_TIMEOUT)
+ {
+ skip("query timed out\n");
+ return;
+ }
+ ok(status == ERROR_SUCCESS, "got %d\n", status);
DnsRecordListFree(rec, DnsFreeRecordList);
status = DnsQuery_W(L"", DNS_TYPE_SRV, DNS_QUERY_STANDARD, NULL, &rec, NULL);
More information about the wine-cvs
mailing list