Commit ab586ae9 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Remove a test that fails on some Windows 98 systems, and document it.

parent c82722b3
...@@ -72,9 +72,14 @@ static void test_AddRemoveProvider(void) ...@@ -72,9 +72,14 @@ static void test_AddRemoveProvider(void)
} }
else else
{ {
ok (!ret, "Expected CryptSIPRemoveProvider to fail.\n"); /* On some Win98 systems, CryptSIPRemoveProvider always succeeds if
ok (GetLastError() == ERROR_FILE_NOT_FOUND, * the arguments are correct, whether or not the registry key is
"Expected ERROR_FILE_NOT_FOUND, got %d.\n", GetLastError()); * present, so don't test ret, just check the last error if it does
* return FALSE.
*/
if (!ret)
ok (GetLastError() == ERROR_FILE_NOT_FOUND,
"Expected ERROR_FILE_NOT_FOUND, got %d.\n", GetLastError());
} }
/* Everything OK, pwszIsFunctionName and pwszIsFunctionNameFmt2 are left NULL /* Everything OK, pwszIsFunctionName and pwszIsFunctionNameFmt2 are left NULL
...@@ -104,9 +109,14 @@ static void test_AddRemoveProvider(void) ...@@ -104,9 +109,14 @@ static void test_AddRemoveProvider(void)
*/ */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = CryptSIPRemoveProvider(&actionid); ret = CryptSIPRemoveProvider(&actionid);
ok (!ret, "Expected CryptSIPRemoveProvider to fail.\n"); /* On some Win98 systems, CryptSIPRemoveProvider always succeeds if
ok (GetLastError() == ERROR_FILE_NOT_FOUND, * the arguments are correct, whether or not the registry key is
"Expected ERROR_FILE_NOT_FOUND, got %d.\n", GetLastError()); * present, so don't test ret, just check the last error if it does
* return FALSE.
*/
if (!ret)
ok (GetLastError() == ERROR_FILE_NOT_FOUND,
"Expected ERROR_FILE_NOT_FOUND, got %d.\n", GetLastError());
/* Everything OK */ /* Everything OK */
memset(&newprov, 0, sizeof(SIP_ADD_NEWPROVIDER)); memset(&newprov, 0, sizeof(SIP_ADD_NEWPROVIDER));
......
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