[PATCH] adsldp/tests: Add one more skip() to catch ERROR_DS_SERVER_DOWN.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Apr 13 05:25:11 CDT 2020
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
dlls/adsldp/tests/ldap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/adsldp/tests/ldap.c b/dlls/adsldp/tests/ldap.c
index e76bd2e0b6..9d0def609b 100644
--- a/dlls/adsldp/tests/ldap.c
+++ b/dlls/adsldp/tests/ldap.c
@@ -350,6 +350,11 @@ static void test_DirectorySearch(void)
ok(hr == E_NOINTERFACE, "got %#x\n", hr);
hr = ADsGetObject(L"LDAP://ldap.forumsys.com/rootDSE", &IID_IDirectorySearch, (void **)&ds);
+ if (hr == HRESULT_FROM_WIN32(ERROR_DS_SERVER_DOWN))
+ {
+ skip("server is down\n");
+ return;
+ }
ok(hr == E_NOINTERFACE, "got %#x\n", hr);
hr = ADsGetObject(L"LDAP://ldap.forumsys.com", &IID_IDirectorySearch, (void **)&ds);
--
2.25.2
More information about the wine-devel
mailing list