Jacek Caban : urlmon: Skip tests that fail on too old IEs.

Alexandre Julliard julliard at winehq.org
Tue Oct 18 12:56:29 CDT 2011


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Oct 18 15:16:29 2011 +0200

urlmon: Skip tests that fail on too old IEs.

---

 dlls/urlmon/tests/url.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c
index 6067f08..fe98089 100644
--- a/dlls/urlmon/tests/url.c
+++ b/dlls/urlmon/tests/url.c
@@ -3622,15 +3622,17 @@ static void test_StdURLMoniker(void)
     ok(hres == S_OK, "CreateAsyncBindCtx failed: %08x\n\n", hres);
     CHECK_CALLED(QueryInterface_IServiceProvider);
 
-    unk = (void*)0xdeadbeef;
-    hres = IMoniker_BindToStorage(mon, bctx, NULL, &IID_IStream, (void**)&unk);
-    ok(hres == MK_E_SYNTAX, "BindToStorage failed: %08x, expected MK_E_SYNTAX\n", hres);
-    ok(!unk, "unk = %p\n", unk);
+    if(pCreateUri) { /* Skip these tests on old IEs */
+        unk = (void*)0xdeadbeef;
+        hres = IMoniker_BindToStorage(mon, bctx, NULL, &IID_IStream, (void**)&unk);
+        ok(hres == MK_E_SYNTAX, "BindToStorage failed: %08x, expected MK_E_SYNTAX\n", hres);
+        ok(!unk, "unk = %p\n", unk);
 
-    unk = (void*)0xdeadbeef;
-    hres = IMoniker_BindToObject(mon, bctx, NULL, &IID_IUnknown, (void**)&unk);
-    ok(hres == MK_E_SYNTAX, "BindToStorage failed: %08x, expected MK_E_SYNTAX\n", hres);
-    ok(!unk, "unk = %p\n", unk);
+        unk = (void*)0xdeadbeef;
+        hres = IMoniker_BindToObject(mon, bctx, NULL, &IID_IUnknown, (void**)&unk);
+        ok(hres == MK_E_SYNTAX, "BindToStorage failed: %08x, expected MK_E_SYNTAX\n", hres);
+        ok(!unk, "unk = %p\n", unk);
+    }
 
     IMoniker_Release(mon);
 }




More information about the wine-cvs mailing list