1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

For tests, rename ASSERT_ALLOC() to TEST_CALLOC_OR_FAIL()

Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
Tom Cosgrove
2023-07-20 16:48:18 +01:00
parent 65cd8519f7
commit f9ffd11e7a
40 changed files with 347 additions and 347 deletions

View File

@ -17,10 +17,10 @@ void mbedtls_xor(int len)
{
size_t n = (size_t) len;
unsigned char *a = NULL, *b = NULL, *r1 = NULL, *r2 = NULL;
ASSERT_ALLOC(a, n + 1);
ASSERT_ALLOC(b, n + 1);
ASSERT_ALLOC(r1, n + 1);
ASSERT_ALLOC(r2, n + 1);
TEST_CALLOC_OR_FAIL(a, n + 1);
TEST_CALLOC_OR_FAIL(b, n + 1);
TEST_CALLOC_OR_FAIL(r1, n + 1);
TEST_CALLOC_OR_FAIL(r2, n + 1);
/* Test non-overlapping */
fill_arrays(a, b, r1, r2, n);