feat(tftf): improve notifications tests logging
Change-Id: I231ffdcc29afa5305799314391569bc88edc83f3
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/tftf/tests/runtime_services/secure_service/test_ffa_notifications.c b/tftf/tests/runtime_services/secure_service/test_ffa_notifications.c
index 2245895..5a77057 100644
--- a/tftf/tests/runtime_services/secure_service/test_ffa_notifications.c
+++ b/tftf/tests/runtime_services/secure_service/test_ffa_notifications.c
@@ -170,7 +170,13 @@
ret = cactus_notification_bind_send_cmd(HYP_ID, cmd_dest, receiver,
sender, notifications, flags);
- return is_expected_cactus_response(ret, expected_resp, error_code);
+ if (!is_expected_cactus_response(ret, expected_resp, error_code)) {
+ ERROR("Failed notifications bind. receiver: %x; sender: %x\n",
+ receiver, sender);
+ return false;
+ }
+
+ return true;
}
/**
@@ -195,7 +201,13 @@
ret = cactus_notification_unbind_send_cmd(HYP_ID, cmd_dest, receiver,
sender, notifications);
- return is_expected_cactus_response(ret, expected_resp, error_code);
+ if (!is_expected_cactus_response(ret, expected_resp, error_code)) {
+ ERROR("Failed notifications unbind. receiver: %x; sender: %x\n",
+ receiver, sender);
+ return false;
+ }
+
+ return true;
}
/**
@@ -416,7 +428,13 @@
ret = cactus_notifications_set_send_cmd(HYP_ID, cmd_dest, receiver,
sender, flags, notifications);
- return is_expected_cactus_response(ret, exp_resp, exp_error);
+ if (!is_expected_cactus_response(ret, exp_resp, exp_error)) {
+ ERROR("Failed notifications set. receiver: %x; sender: %x\n",
+ receiver, sender);
+ return false;
+ }
+
+ return true;
}
/**