Hans Leidekker : bcrypt/tests: Relax the AES object length test.
Alexandre Julliard
julliard at winehq.org
Tue Jan 17 15:10:32 CST 2017
Module: wine
Branch: master
Commit: 1ee781266d674e64bbe572dfe8d29f6e49bf4c25
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ee781266d674e64bbe572dfe8d29f6e49bf4c25
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Jan 17 10:49:27 2017 +0100
bcrypt/tests: Relax the AES object length test.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/bcrypt/tests/bcrypt.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c
index 3e41335..422f2cf 100644
--- a/dlls/bcrypt/tests/bcrypt.c
+++ b/dlls/bcrypt/tests/bcrypt.c
@@ -789,22 +789,8 @@ todo_wine {
len = size = 0;
ret = pBCryptGetProperty(alg, BCRYPT_OBJECT_LENGTH, (UCHAR *)&len, sizeof(len), &size, 0);
ok(ret == STATUS_SUCCESS, "got %08x\n", ret);
- if (sizeof(void *) == 4)
- {
- ok(len == 618 /* >= Win 8 */
- || broken(len == 610) /* Win 7 */
- || broken(len == 582) /* < Win 7 */,
- "got %u\n", len);
- ok(size == sizeof(len), "got %u\n", size);
- }
- else
- {
- ok(len == 654 /* >= Win 8 */
- || broken(len == 622) /* Win 7 */
- || broken(len == 598) /* < Win 7 */,
- "got %u\n", len);
- ok(size == sizeof(len), "got %u\n", size);
- }
+ ok(len, "expected non-zero len\n");
+ ok(size == sizeof(len), "got %u\n", size);
len = size = 0;
ret = pBCryptGetProperty(alg, BCRYPT_BLOCK_LENGTH, (UCHAR *)&len, sizeof(len), &size, 0);
More information about the wine-cvs
mailing list