Jacek Caban : wininet: Skip test_open_url_async on IEs older than 7.

Alexandre Julliard julliard at winehq.org
Mon Mar 11 16:24:51 CDT 2013


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sat Mar  9 17:52:02 2013 +0100

wininet: Skip test_open_url_async on IEs older than 7.

---

 dlls/wininet/tests/http.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 7988de4..c2607dc 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -3662,6 +3662,16 @@ static void test_open_url_async(void)
     ret = InternetSetOptionA(NULL, INTERNET_OPTION_SETTINGS_CHANGED, NULL, 0);
     ok(ret, "InternetSetOption(INTERNET_OPTION_END_BROWSER_SESSION) failed: %u\n", GetLastError());
 
+    /*
+     * Some versions of IE6 fail those tests. They pass some notification data as UNICODE string, while
+     * other versions never do. They also hang of following tests. We disable it for everything older
+     * than IE7.
+     */
+    if(!pInternetGetSecurityInfoByURLA) {
+        win_skip("Skipping async open on too old wininet version.\n");
+        return;
+    }
+
     ctx.req = NULL;
     ctx.event = CreateEvent(NULL, TRUE, FALSE, "Z:_home_hans_jaman-installer.exe_ev1");
 




More information about the wine-cvs mailing list