mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
crypt32/tests: Be more verbose on the failing base64 tests on Vista to help locate the failures.
This commit is contained in:
parent
414cdc0475
commit
2f445e4e4a
1 changed files with 3 additions and 3 deletions
|
@ -280,7 +280,7 @@ static void decodeAndCompareBase64_A(LPCSTR toDecode, LPCSTR header,
|
|||
ok(ret, "CryptStringToBinaryA failed: %d\n", GetLastError());
|
||||
else
|
||||
ok(!ret && GetLastError() == ERROR_INVALID_DATA,
|
||||
"Expected ERROR_INVALID_DATA, got %d\n", GetLastError());
|
||||
"Expected !ret and last error ERROR_INVALID_DATA, got ret=%d, error=%d\n", ret, GetLastError());
|
||||
if (ret)
|
||||
{
|
||||
buf = HeapAlloc(GetProcessHeap(), 0, bufLen);
|
||||
|
@ -291,8 +291,8 @@ static void decodeAndCompareBase64_A(LPCSTR toDecode, LPCSTR header,
|
|||
ret = pCryptStringToBinaryA(str, 0, useFormat, buf, &bufLen,
|
||||
&skipped, &usedFormat);
|
||||
ok(skipped == strlen(garbage),
|
||||
"Expected %d characters skipped, got %d\n", lstrlenA(garbage),
|
||||
skipped);
|
||||
"Expected %d characters of \"%s\" skipped when trying format %08x, got %d (used format is %08x)\n",
|
||||
lstrlenA(garbage), str, useFormat, skipped, usedFormat);
|
||||
HeapFree(GetProcessHeap(), 0, buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue