bcrypt/tests: Relax the AES object length test.
Hans Leidekker
hans at codeweavers.com
Tue Jan 17 03:49:27 CST 2017
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
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);
--
2.1.4
More information about the wine-patches
mailing list