msxml3/tests: Skip some tests when network connection can't be made.
authorPaul Vriens <Paul.Vriens.Wine@gmail.com>
Fri, 26 Mar 2010 15:42:15 +0000 (16:42 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 26 Mar 2010 16:05:30 +0000 (17:05 +0100)
dlls/msxml3/tests/domdoc.c

index 08b577631d0ffda57d8428cf2b04af8ceada1ba8..a743e51d3915900bea8acd5f84aca32619c6f30f 100644 (file)
@@ -2750,6 +2750,12 @@ static void test_XMLHTTP(void)
     SysFreeString(str2);
 
     hr = IXMLHttpRequest_send(pXMLHttpRequest, varbody);
+    if (hr == INET_E_RESOURCE_NOT_FOUND)
+    {
+        skip("No connection could be made with crossover.codeweavers.com\n");
+        IXMLHttpRequest_Release(pXMLHttpRequest);
+        return;
+    }
     todo_wine ok(hr == S_OK, "IXMLHttpRequest_send should have succeeded instead of failing with 0x%08x\n", hr);
     VariantClear(&varbody);