test(ff-a): uuid field for ffa_partition_info_get
The EAC0 v1.1 FF-A spec now requires that the UUID field in the
partition information descriptors is only populated when
FFA_PARTITION_INFO_GET is supplied with a null uuid (Table 13.37).
This patch updates the tests to check for this.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I241c6bed4fc5f63ec91a7b86725be5b2ee838601
diff --git a/spm/common/sp_tests/sp_test_ffa.c b/spm/common/sp_tests/sp_test_ffa.c
index f81505a..252eba0 100644
--- a/spm/common/sp_tests/sp_test_ffa.c
+++ b/spm/common/sp_tests/sp_test_ffa.c
@@ -24,7 +24,6 @@
static const struct ffa_uuid sp_uuids[] = {
{PRIMARY_UUID}, {SECONDARY_UUID}, {TERTIARY_UUID}, {IVY_UUID}
};
-static const struct ffa_uuid null_uuid = { .uuid = {0} };
static const struct ffa_partition_info ffa_expected_partition_info[] = {
/* Primary partition info */
@@ -130,7 +129,7 @@
expect(ffa_partition_info_helper(mb, sp_uuids[0],
&ffa_expected_partition_info[0], 1), true);
- expect(ffa_partition_info_helper(mb, null_uuid,
+ expect(ffa_partition_info_helper(mb, NULL_UUID,
ffa_expected_partition_info,
ARRAY_SIZE(ffa_expected_partition_info)), true);