fix: ffa_memory_receive test service as per rtm changes
In patch [1] all calls to ffa_msg_wait at the beginning
of test services were deleted to comply with update
to runtime models.
The test function "ffa_memory_receive" was left out.
[1] https://review.trustedfirmware.org/c/hafnium/hafnium/+/17457
Change-Id: I744d025ff8270ebcce3f44b47f869546c5106ae1
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/test/vmapi/primary_with_secondaries/memory_sharing.c b/test/vmapi/primary_with_secondaries/memory_sharing.c
index 152fd4f..1296dc4 100644
--- a/test/vmapi/primary_with_secondaries/memory_sharing.c
+++ b/test/vmapi/primary_with_secondaries/memory_sharing.c
@@ -1106,10 +1106,6 @@
mb.send);
SERVICE_SELECT(service2_info->vm_id, "ffa_memory_receive", mb.send);
- /* Set up service2 to wait for message. */
- run_res = ffa_run(service2_info->vm_id, 0);
- EXPECT_EQ(run_res.func, FFA_MSG_WAIT_32);
-
/* Let the memory be sent from service1 to service2. */
run_res = ffa_run(service1_info->vm_id, 0);
EXPECT_EQ(run_res.func, FFA_YIELD_32);
diff --git a/test/vmapi/primary_with_secondaries/services/memory.c b/test/vmapi/primary_with_secondaries/services/memory.c
index 50d0397..baa2a62 100644
--- a/test/vmapi/primary_with_secondaries/services/memory.c
+++ b/test/vmapi/primary_with_secondaries/services/memory.c
@@ -428,12 +428,10 @@
void *send_buf = SERVICE_SEND_BUFFER();
for (;;) {
- struct ffa_value ret = ffa_msg_wait();
struct ffa_memory_region *memory_region =
(struct ffa_memory_region *)retrieve_buffer;
struct ffa_composite_memory_region *composite;
uint8_t *ptr;
- ASSERT_NE(ret.func, FFA_ERROR_32);
retrieve_memory_from_message(recv_buf, send_buf, NULL,
memory_region, HF_MAILBOX_SIZE);