Juan Lang : cryptnet: Skip failing tests no matter what the last error is, but only on Windows.

Alexandre Julliard julliard at winehq.org
Fri Jan 30 07:58:19 CST 2009


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Jan 29 16:57:45 2009 -0800

cryptnet: Skip failing tests no matter what the last error is, but only on Windows.

---

 dlls/cryptnet/tests/cryptnet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c
index 5a4e773..618e494 100644
--- a/dlls/cryptnet/tests/cryptnet.c
+++ b/dlls/cryptnet/tests/cryptnet.c
@@ -285,10 +285,10 @@ static void test_retrieveObjectByUrl(void)
     pBlobArray = (CRYPT_BLOB_ARRAY *)0xdeadbeef;
     ret = CryptRetrieveObjectByUrlA(url, NULL, 0, 0, (void **)&pBlobArray,
      NULL, NULL, NULL, NULL);
-    if (!ret && GetLastError() == ERROR_NOT_SUPPORTED)
+    if (!ret)
     {
         /* File URL support was apparently removed in Vista/Windows 2008 */
-        skip("File URLs not supported\n");
+        win_skip("File URLs not supported\n");
         return;
     }
     ok(ret, "CryptRetrieveObjectByUrlA failed: %d\n", GetLastError());




More information about the wine-cvs mailing list