Followup of d2e03e5b43.
[This is a testbot run.](https://testbot.winehq.org/JobDetails.pl?Key=157865)
From: Bernhard Übelacker bernhardu@mailbox.org
Followup of d2e03e5b43. --- dlls/winhttp/tests/winhttp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 12dbfdce663..77b75fb55d6 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -3385,7 +3385,11 @@ static void test_redirect(int port, const WCHAR *path, const WCHAR *target) ret = WinHttpQueryOption(req, WINHTTP_OPTION_URL, url, &size); ok(ret, "got %lu\n", GetLastError()); swprintf(expected, ARRAY_SIZE(expected), L"http://localhost:%u/%s", port, target); - ok(!wcscmp(url, expected), "expected %s got %s\n", wine_dbgstr_w(expected), wine_dbgstr_w(url)); + ok(!wcscmp(url, expected) || + broken(!!wcsstr(url, L"redirect-perm")), /* < Win10 */ + "expected %s got %s\n", wine_dbgstr_w(expected), wine_dbgstr_w(url)); + if (wcsstr(url, L"redirect-perm")) + goto cleanup;
status = 0xdeadbeef; size = sizeof(status); @@ -3405,6 +3409,7 @@ static void test_redirect(int port, const WCHAR *path, const WCHAR *target) ok(ret, "failed to read data %lu\n", GetLastError()); ok(count == 128, "got %lu\n", count);
+cleanup: WinHttpCloseHandle(req); WinHttpCloseHandle(con); WinHttpCloseHandle(ses);
This merge request was approved by Hans Leidekker.