For tests, rename ASSERT_ALLOC() to TEST_CALLOC_OR_FAIL()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
diff --git a/tests/suites/test_suite_aes.function b/tests/suites/test_suite_aes.function
index c88f4c3..36859bd 100644
--- a/tests/suites/test_suite_aes.function
+++ b/tests/suites/test_suite_aes.function
@@ -688,8 +688,8 @@
struct align1 *dec1 = NULL;
/* All peak alignment */
- ASSERT_ALLOC(enc0, 1);
- ASSERT_ALLOC(dec0, 1);
+ TEST_CALLOC_OR_FAIL(enc0, 1);
+ TEST_CALLOC_OR_FAIL(dec0, 1);
if (!test_ctx_alignment(key, &enc0->ctx, &dec0->ctx)) {
goto exit;
}
@@ -699,8 +699,8 @@
dec0 = NULL;
/* Enc aligned, dec not */
- ASSERT_ALLOC(enc0, 1);
- ASSERT_ALLOC(dec1, 1);
+ TEST_CALLOC_OR_FAIL(enc0, 1);
+ TEST_CALLOC_OR_FAIL(dec1, 1);
if (!test_ctx_alignment(key, &enc0->ctx, &dec1->ctx)) {
goto exit;
}
@@ -710,8 +710,8 @@
dec1 = NULL;
/* Dec aligned, enc not */
- ASSERT_ALLOC(enc1, 1);
- ASSERT_ALLOC(dec0, 1);
+ TEST_CALLOC_OR_FAIL(enc1, 1);
+ TEST_CALLOC_OR_FAIL(dec0, 1);
if (!test_ctx_alignment(key, &enc1->ctx, &dec0->ctx)) {
goto exit;
}
@@ -721,8 +721,8 @@
dec0 = NULL;
/* Both shifted */
- ASSERT_ALLOC(enc1, 1);
- ASSERT_ALLOC(dec1, 1);
+ TEST_CALLOC_OR_FAIL(enc1, 1);
+ TEST_CALLOC_OR_FAIL(dec1, 1);
if (!test_ctx_alignment(key, &enc1->ctx, &dec1->ctx)) {
goto exit;
}