Reece Dunn : crypt32/tests: Be more verbose on the failing base64 tests on Vista to help locate the failures .
Alexandre Julliard
julliard at winehq.org
Wed Jul 23 07:10:14 CDT 2008
Module: wine
Branch: master
Commit: 2f445e4e4a74bda3034d993226f05073e777eb85
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f445e4e4a74bda3034d993226f05073e777eb85
Author: Reece Dunn <msclrhd at googlemail.com>
Date: Tue Jul 22 22:25:30 2008 +0100
crypt32/tests: Be more verbose on the failing base64 tests on Vista to help locate the failures.
---
dlls/crypt32/tests/base64.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/crypt32/tests/base64.c b/dlls/crypt32/tests/base64.c
index 4dd7c5f..965b3f8 100644
--- a/dlls/crypt32/tests/base64.c
+++ b/dlls/crypt32/tests/base64.c
@@ -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);
}
}
More information about the wine-cvs
mailing list