Commit 2017cf27 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 5e79fd75
...@@ -41,7 +41,7 @@ static void test_encodeSPCFinancialCriteria(void) ...@@ -41,7 +41,7 @@ static void test_encodeSPCFinancialCriteria(void)
if (!pCryptEncodeObjectEx) if (!pCryptEncodeObjectEx)
{ {
skip("CryptEncodeObjectEx() is not available. Skipping the encodeFinancialCriteria tests\n"); win_skip("CryptEncodeObjectEx() is not available. Skipping the encodeFinancialCriteria tests\n");
return; return;
} }
ret = pCryptEncodeObjectEx(X509_ASN_ENCODING, SPC_FINANCIAL_CRITERIA_STRUCT, ret = pCryptEncodeObjectEx(X509_ASN_ENCODING, SPC_FINANCIAL_CRITERIA_STRUCT,
...@@ -73,7 +73,7 @@ static void test_decodeSPCFinancialCriteria(void) ...@@ -73,7 +73,7 @@ static void test_decodeSPCFinancialCriteria(void)
if (!pCryptDecodeObjectEx) if (!pCryptDecodeObjectEx)
{ {
skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCFinancialCriteria tests\n"); win_skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCFinancialCriteria tests\n");
return; return;
} }
...@@ -123,7 +123,7 @@ static void test_encodeSPCLink(void) ...@@ -123,7 +123,7 @@ static void test_encodeSPCLink(void)
if (!pCryptEncodeObjectEx) if (!pCryptEncodeObjectEx)
{ {
skip("CryptEncodeObjectEx() is not available. Skipping the encodeSPCLink tests\n"); win_skip("CryptEncodeObjectEx() is not available. Skipping the encodeSPCLink tests\n");
return; return;
} }
...@@ -215,7 +215,7 @@ static void test_decodeSPCLink(void) ...@@ -215,7 +215,7 @@ static void test_decodeSPCLink(void)
if (!pCryptDecodeObjectEx) if (!pCryptDecodeObjectEx)
{ {
skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCLink tests\n"); win_skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCLink tests\n");
return; return;
} }
...@@ -325,7 +325,7 @@ static void test_encodeSPCPEImage(void) ...@@ -325,7 +325,7 @@ static void test_encodeSPCPEImage(void)
if (!pCryptEncodeObjectEx) if (!pCryptEncodeObjectEx)
{ {
skip("CryptEncodeObjectEx() is not available. Skipping the encodeSPCPEImage tests\n"); win_skip("CryptEncodeObjectEx() is not available. Skipping the encodeSPCPEImage tests\n");
return; return;
} }
...@@ -430,7 +430,7 @@ static void test_decodeSPCPEImage(void) ...@@ -430,7 +430,7 @@ static void test_decodeSPCPEImage(void)
if (!pCryptDecodeObjectEx) if (!pCryptDecodeObjectEx)
{ {
skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCPEImage tests\n"); win_skip("CryptDecodeObjectEx() is not available. Skipping the decodeSPCPEImage tests\n");
return; return;
} }
...@@ -556,7 +556,7 @@ static void test_encodeCatMemberInfo(void) ...@@ -556,7 +556,7 @@ static void test_encodeCatMemberInfo(void)
if (!pCryptEncodeObjectEx) if (!pCryptEncodeObjectEx)
{ {
skip("CryptEncodeObjectEx() is not available. Skipping the encodeCatMemberInfo tests\n"); win_skip("CryptEncodeObjectEx() is not available. Skipping the encodeCatMemberInfo tests\n");
return; return;
} }
...@@ -605,7 +605,7 @@ static void test_decodeCatMemberInfo(void) ...@@ -605,7 +605,7 @@ static void test_decodeCatMemberInfo(void)
if (!pCryptDecodeObjectEx) if (!pCryptDecodeObjectEx)
{ {
skip("CryptDecodeObjectEx() is not available. Skipping the decodeCatMemberInfo tests\n"); win_skip("CryptDecodeObjectEx() is not available. Skipping the decodeCatMemberInfo tests\n");
return; return;
} }
......
...@@ -66,7 +66,7 @@ static void test_AddRem_ActionID(void) ...@@ -66,7 +66,7 @@ static void test_AddRem_ActionID(void)
if (!pWintrustAddActionID || !pWintrustRemoveActionID) if (!pWintrustAddActionID || !pWintrustRemoveActionID)
{ {
skip("WintrustAddActionID and/or WintrustRemoveActionID are not available\n"); win_skip("WintrustAddActionID and/or WintrustRemoveActionID are not available\n");
return; return;
} }
...@@ -176,7 +176,7 @@ static void test_AddDefaultForUsage(void) ...@@ -176,7 +176,7 @@ static void test_AddDefaultForUsage(void)
if (!pWintrustAddDefaultForUsage) if (!pWintrustAddDefaultForUsage)
{ {
skip("WintrustAddDefaultForUsage is not available\n"); win_skip("WintrustAddDefaultForUsage is not available\n");
return; return;
} }
...@@ -229,7 +229,7 @@ static void test_LoadFunctionPointers(void) ...@@ -229,7 +229,7 @@ static void test_LoadFunctionPointers(void)
if (!pWintrustLoadFunctionPointers) if (!pWintrustLoadFunctionPointers)
{ {
skip("WintrustLoadFunctionPointers is not available\n"); win_skip("WintrustLoadFunctionPointers is not available\n");
return; return;
} }
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
...@@ -278,7 +278,7 @@ static void test_RegPolicyFlags(void) ...@@ -278,7 +278,7 @@ static void test_RegPolicyFlags(void)
if (!pWintrustGetRegPolicyFlags || !pWintrustSetRegPolicyFlags) if (!pWintrustGetRegPolicyFlags || !pWintrustSetRegPolicyFlags)
{ {
skip("Policy flags functions not present\n"); win_skip("Policy flags functions not present\n");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment