crypt32/tests: Use win_skip() to skip over unimplemented functionality.

Francois Gouget fgouget at free.fr
Mon Feb 23 17:04:36 CST 2009


---
 dlls/crypt32/tests/base64.c      |    4 ++--
 dlls/crypt32/tests/cert.c        |   10 +++++-----
 dlls/crypt32/tests/chain.c       |    6 +++---
 dlls/crypt32/tests/crl.c         |    4 ++--
 dlls/crypt32/tests/encode.c      |    2 +-
 dlls/crypt32/tests/oid.c         |    2 +-
 dlls/crypt32/tests/protectdata.c |    2 +-
 dlls/crypt32/tests/store.c       |   14 +++++++-------
 dlls/crypt32/tests/str.c         |   10 +++++-----
 9 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/dlls/crypt32/tests/base64.c b/dlls/crypt32/tests/base64.c
index 15f41c8..5a260ed 100644
--- a/dlls/crypt32/tests/base64.c
+++ b/dlls/crypt32/tests/base64.c
@@ -449,10 +449,10 @@ START_TEST(base64)
     if (pCryptBinaryToStringA)
         testBinaryToStringA();
     else
-        skip("CryptBinaryToStringA is not available\n");
+        win_skip("CryptBinaryToStringA is not available\n");
 
     if (pCryptStringToBinaryA)
         testStringToBinaryA();
     else
-        skip("CryptStringToBinaryA is not available\n");
+        win_skip("CryptStringToBinaryA is not available\n");
 }
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index ffb9105..322fa2f 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1672,12 +1672,12 @@ static void testVerifyCertSig(HCRYPTPROV csp, const CRYPT_DATA_BLOB *toBeSigned,
 
     if (!pCryptVerifyCertificateSignatureEx)
     {
-        skip("no CryptVerifyCertificateSignatureEx support\n");
+        win_skip("no CryptVerifyCertificateSignatureEx support\n");
         return;
     }
     if (!pCryptEncodeObjectEx)
     {
-        skip("no CryptEncodeObjectEx support\n");
+        win_skip("no CryptEncodeObjectEx support\n");
         return;
     }
     ret = pCryptVerifyCertificateSignatureEx(0, 0, 0, NULL, 0, NULL, 0, NULL);
@@ -1897,7 +1897,7 @@ static void testCreateSelfSignCert(void)
 
     if (!pCertCreateSelfSignCertificate)
     {
-        skip("CertCreateSelfSignCertificate() is not available\n");
+        win_skip("CertCreateSelfSignCertificate() is not available\n");
         return;
     }
 
@@ -2334,7 +2334,7 @@ static void testGetValidUsages(void)
 
     if (!pCertGetValidUsages)
     {
-        skip("CertGetValidUsages() is not available\n");
+        win_skip("CertGetValidUsages() is not available\n");
         return;
     }
 
@@ -2875,7 +2875,7 @@ static void testAcquireCertPrivateKey(void)
 
     if (!pCryptAcquireCertificatePrivateKey)
     {
-        skip("CryptAcquireCertificatePrivateKey() is not available\n");
+        win_skip("CryptAcquireCertificatePrivateKey() is not available\n");
         return;
     }
 
diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c
index 73fda34..f7efe64 100644
--- a/dlls/crypt32/tests/chain.c
+++ b/dlls/crypt32/tests/chain.c
@@ -68,7 +68,7 @@ static void testCreateCertChainEngine(void)
 
     if (!pCertCreateCertificateChainEngine || !pCertFreeCertificateChainEngine)
     {
-        skip("Cert*CertificateChainEngine() functions are not available\n");
+        win_skip("Cert*CertificateChainEngine() functions are not available\n");
         return;
     }
 
@@ -1930,7 +1930,7 @@ static void testVerifyCertChainPolicy(void)
 
     if (!pCertVerifyCertificateChainPolicy)
     {
-        skip("CertVerifyCertificateChainPolicy() is not available\n");
+        win_skip("CertVerifyCertificateChainPolicy() is not available\n");
         return;
     }
 
@@ -2010,7 +2010,7 @@ START_TEST(chain)
     testCreateCertChainEngine();
     if (!pCertGetCertificateChain)
     {
-        skip("CertGetCertificateChain() is not available\n");
+        win_skip("CertGetCertificateChain() is not available\n");
     }
     else
     {
diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c
index 0bd0e5c..abd8491 100644
--- a/dlls/crypt32/tests/crl.c
+++ b/dlls/crypt32/tests/crl.c
@@ -219,7 +219,7 @@ static void testFindCRL(void)
     if (!store) return;
     if (!pCertFindCRLInStore)
     {
-        skip("CertFindCRLInStore() is not available\n");
+        win_skip("CertFindCRLInStore() is not available\n");
         return;
     }
 
@@ -619,7 +619,7 @@ static void testFindCertInCRL(void)
 
     if (!pCertFindCertificateInCRL)
     {
-        skip("CertFindCertificateInCRL() is not available\n");
+        win_skip("CertFindCertificateInCRL() is not available\n");
         return;
     }
 
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index 439a25f..e406194 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -7497,7 +7497,7 @@ START_TEST(encode)
     pCryptEncodeObjectEx = (void*)GetProcAddress(hCrypt32, "CryptEncodeObjectEx");
     if (!pCryptDecodeObjectEx || !pCryptEncodeObjectEx)
     {
-        skip("CryptDecodeObjectEx() is not available\n");
+        win_skip("CryptDecodeObjectEx() is not available\n");
         return;
     }
 
diff --git a/dlls/crypt32/tests/oid.c b/dlls/crypt32/tests/oid.c
index bb23a1e..9b50129 100644
--- a/dlls/crypt32/tests/oid.c
+++ b/dlls/crypt32/tests/oid.c
@@ -531,7 +531,7 @@ static void test_enumOIDInfo(void)
 
     if (!pCryptEnumOIDInfo)
     {
-        skip("CryptEnumOIDInfo() is not available\n");
+        win_skip("CryptEnumOIDInfo() is not available\n");
         return;
     }
 
diff --git a/dlls/crypt32/tests/protectdata.c b/dlls/crypt32/tests/protectdata.c
index 97b08c5..82cf1aa 100644
--- a/dlls/crypt32/tests/protectdata.c
+++ b/dlls/crypt32/tests/protectdata.c
@@ -221,7 +221,7 @@ START_TEST(protectdata)
     pCryptUnprotectData = (void*)GetProcAddress(hCrypt32, "CryptUnprotectData");
     if (!pCryptProtectData || !pCryptUnprotectData)
     {
-        skip("Crypt(Un)ProtectData() is not available\n");
+        win_skip("Crypt(Un)ProtectData() is not available\n");
         return;
     }
 
diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c
index 65d7f15..ae10fbc 100644
--- a/dlls/crypt32/tests/store.c
+++ b/dlls/crypt32/tests/store.c
@@ -285,7 +285,7 @@ static void testCollectionStore(void)
 
     if (!pCertAddStoreToCollection)
     {
-        skip("CertAddStoreToCollection() is not available\n");
+        win_skip("CertAddStoreToCollection() is not available\n");
         return;
     }
 
@@ -545,7 +545,7 @@ static void testCollectionStore(void)
 
     if (!pCertRemoveStoreFromCollection)
     {
-        skip("CertRemoveStoreFromCollection() is not available\n");
+        win_skip("CertRemoveStoreFromCollection() is not available\n");
     }
     else
     {
@@ -639,7 +639,7 @@ static void testRegStore(void)
     /* It looks like the remainder pretty much needs CertControlStore() */
     if (!pCertControlStore)
     {
-        skip("CertControlStore() is not available\n");
+        win_skip("CertControlStore() is not available\n");
         return;
     }
 
@@ -1113,7 +1113,7 @@ static void testFileStore(void)
 
     if (!pCertControlStore)
     {
-        skip("CertControlStore() is not available\n");
+        win_skip("CertControlStore() is not available\n");
         return;
     }
 
@@ -1714,7 +1714,7 @@ static void testCertEnumSystemStore(void)
 
     if (!pCertEnumSystemStore)
     {
-        skip("CertEnumSystemStore() is not available\n");
+        win_skip("CertEnumSystemStore() is not available\n");
         return;
     }
 
@@ -1754,7 +1754,7 @@ static void testStoreProperty(void)
 
     if (!pCertGetStoreProperty || !pCertSetStoreProperty)
     {
-        skip("CertGet/SetStoreProperty() is not available\n");
+        win_skip("CertGet/SetStoreProperty() is not available\n");
         return;
     }
 
@@ -2016,7 +2016,7 @@ static void test_I_UpdateStore(void)
 
     if (!pI_CertUpdatestore)
     {
-        skip("No I_CertUpdateStore\n");
+        win_skip("No I_CertUpdateStore\n");
         return;
     }
     store1 = CertOpenStore(CERT_STORE_PROV_MEMORY, 0, 0,
diff --git a/dlls/crypt32/tests/str.c b/dlls/crypt32/tests/str.c
index 2b30995..ebc3342 100644
--- a/dlls/crypt32/tests/str.c
+++ b/dlls/crypt32/tests/str.c
@@ -281,7 +281,7 @@ static void test_CertRDNValueToStrW(void)
 
     if (!pCertRDNValueToStrW)
     {
-        skip("CertRDNValueToStrW is not available\n");
+        win_skip("CertRDNValueToStrW is not available\n");
         return;
     }
 
@@ -333,7 +333,7 @@ static void test_CertNameToStrA(void)
 
     if (!pCertNameToStrA)
     {
-        skip("CertNameToStrA is not available\n");
+        win_skip("CertNameToStrA is not available\n");
         return;
     }
 
@@ -412,7 +412,7 @@ static void test_CertNameToStrW(void)
 
     if (!pCertNameToStrW)
     {
-        skip("CertNameToStrW is not available\n");
+        win_skip("CertNameToStrW is not available\n");
         return;
     }
 
@@ -499,7 +499,7 @@ static void test_CertStrToNameA(void)
 
     if (!pCertStrToNameA)
     {
-        skip("CertStrToNameA is not available\n");
+        win_skip("CertStrToNameA is not available\n");
         return;
     }
 
@@ -584,7 +584,7 @@ static void test_CertStrToNameW(void)
 
     if (!pCertStrToNameW)
     {
-        skip("CertStrToNameW is not available\n");
+        win_skip("CertStrToNameW is not available\n");
         return;
     }
 
-- 
1.5.6.5




More information about the wine-patches mailing list