Paul Vriens : wininet/tests: Skip tests if functions are not implemented.

Alexandre Julliard julliard at winehq.org
Tue Mar 10 10:53:20 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Mar 10 08:08:38 2009 +0100

wininet/tests: Skip tests if functions are not implemented.

---

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

diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c
index 56a604b..91c82d3 100644
--- a/dlls/wininet/tests/internet.c
+++ b/dlls/wininet/tests/internet.c
@@ -354,7 +354,13 @@ static void test_null(void)
   BOOL r;
   DWORD sz;
 
+  SetLastError(0xdeadbeef);
   hi = InternetOpenW(NULL, 0, NULL, NULL, 0);
+  if (hi == NULL && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+  {
+    win_skip("Internet*W functions are not implemented\n");
+    return;
+  }
   ok(hi != NULL, "open failed\n");
 
   hc = InternetConnectW(hi, NULL, 0, NULL, NULL, 0, 0, 0);
@@ -644,6 +650,11 @@ static void test_IsDomainLegalCookieDomainW(void)
     SetLastError(0xdeadbeef);
     ret = pIsDomainLegalCookieDomainW(NULL, NULL);
     error = GetLastError();
+    if (!ret && error == ERROR_CALL_NOT_IMPLEMENTED)
+    {
+        win_skip("IsDomainLegalCookieDomainW is not implemented\n");
+        return;
+    }
     ok(!ret ||
         broken(ret), /* IE6 */
         "IsDomainLegalCookieDomainW succeeded\n");




More information about the wine-cvs mailing list