Alexandre Julliard : urlmon/tests: Fix a test failure on COOKIE_SENT status .

Alexandre Julliard julliard at winehq.org
Thu May 3 14:23:46 CDT 2012


Module: wine
Branch: master
Commit: 2ded2fe7ad41dfa0346c296db90801104dd8207a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2ded2fe7ad41dfa0346c296db90801104dd8207a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May  3 10:23:19 2012 +0200

urlmon/tests: Fix a test failure on COOKIE_SENT status.

---

 dlls/urlmon/tests/url.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index c8c2a63..69a2716 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -1475,7 +1475,8 @@ static void test_WinInetHttpInfo(IWinInetHttpInfo *http_info, DWORD progress)
     size = sizeof(DWORD);
     hres = IWinInetHttpInfo_QueryInfo(http_info, HTTP_QUERY_STATUS_CODE|HTTP_QUERY_FLAG_NUMBER,
             &status, &size, NULL, NULL);
-    ok(hres == expect, "hres = %x, expected %x\n", hres, expect);
+    ok(hres == expect || (progress == BINDSTATUS_COOKIE_SENT && hres == S_FALSE),
+       "hres = %x, expected %x\n", hres, expect);
     if(hres == S_OK) {
         if(download_state==BEFORE_DOWNLOAD && progress!=BINDSTATUS_MIMETYPEAVAILABLE)
             ok(status == 0, "status = %d\n", status);




More information about the wine-cvs mailing list