From 61740652496f48c7cf91db4aea1e5e4e761bda5b Mon Sep 17 00:00:00 2001 From: Maksims Svecovs Date: Tue, 14 Dec 2021 12:01:45 +0000 Subject: test(ff-a): test SP to NS-endpoint mem lend/share Memory sharing/lending from SP to NS-endpoint is not allowed. Checks that the said operations are denied by SPMC. Signed-off-by: Maksims Svecovs Change-Id: I86f3bd637711735b40de9a169e2b3c934d32f1be --- spm/cactus/cactus_tests/cactus_test_memory_sharing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spm/cactus/cactus_tests') diff --git a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c index 0248437..ebca665 100644 --- a/spm/cactus/cactus_tests/cactus_test_memory_sharing.c +++ b/spm/cactus/cactus_tests/cactus_test_memory_sharing.c @@ -168,9 +168,9 @@ CACTUS_CMD_HANDLER(req_mem_send_cmd, CACTUS_REQ_MEM_SEND_CMD) * If returned an invalid handle, we should break the test. */ if (handle == FFA_MEMORY_HANDLE_INVALID) { - ERROR("Received an invalid FF-A memory Handle!\n"); + VERBOSE("Received an invalid FF-A memory Handle!\n"); return cactus_error_resp(vm_id, source, - CACTUS_ERROR_TEST); + ffa_error_code(ffa_ret)); } ffa_ret = cactus_mem_send_cmd(vm_id, receiver, mem_func, handle); -- cgit v1.2.3