Paul Vriens : rsaenh/tests: Fix some test failures on NT4 and lower.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 09:54:06 CDT 2010


Module: wine
Branch: master
Commit: 54958a2105f62745a3b68c8247ba9c7d0af4b3fc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=54958a2105f62745a3b68c8247ba9c7d0af4b3fc

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Apr  9 20:33:33 2010 +0200

rsaenh/tests: Fix some test failures on NT4 and lower.

---

 dlls/rsaenh/tests/rsaenh.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 0bc3d57..cb560f2 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -1048,7 +1048,9 @@ static void test_rc2(void)
         dwLen = 0;
         result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
         ok(result, "%08x\n", GetLastError());
-        ok(dwLen == 0, "unexpected salt length %d\n", dwLen);
+        ok(dwLen == 0 ||
+           broken(dwLen == 11), /* Win9x/WinMe/NT4 */
+           "unexpected salt length %d\n", dwLen);
         /* What sizes salt can I set? */
         salt.pbData = pbData;
         for (i=0; i<24; i++)
@@ -1214,7 +1216,9 @@ static void test_rc4(void)
         dwLen = 0;
         result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0);
         ok(result, "%08x\n", GetLastError());
-        ok(dwLen == 0, "unexpected salt length %d\n", dwLen);
+        ok(dwLen == 0 ||
+           broken(dwLen == 11), /* Win9x/WinMe/NT4 */
+           "unexpected salt length %d\n", dwLen);
         /* What sizes salt can I set? */
         salt.pbData = pbData;
         for (i=0; i<24; i++)




More information about the wine-cvs mailing list