Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 79547a4

Browse files
committed
Fix test_b010 parameter count
As stated by the scmi testlist documentation, test_b010 is testing for an invalid command by first issuing it, and then by verifying the return status code from the PROTOCOL_MESSAGE_ATTRIBUTES command. https://github.com/ARM-software/scmi-tests/blob/master/docs/scmi_testlist.md The PROTOCOL_MESSAGE_ATTRIBUTES requires the message_id to be forwarded as an argument, hence the num_parameter in the val_send_message should be set to 1 to make sure the message is constructed with the appropriate length. Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
1 parent 7b3eedd commit 79547a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test_pool/base/test_b010.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ uint32_t base_invalid_messageid_call(void)
5151
VAL_INIT_TEST_PARAM(param_count, rsp_msg_hdr, return_value_count, status);
5252
message_id = BASE_INVALID_COMMAND;
5353
attributes = 0;
54+
param_count = 1;
5455
cmd_msg_hdr = val_msg_hdr_create(PROTOCOL_BASE, BASE_PROTOCOL_MESSAGE_ATTRIBUTES, COMMAND_MSG);
5556
val_send_message(cmd_msg_hdr, param_count, &message_id, &rsp_msg_hdr, &status,
5657
&return_value_count, &attributes);

0 commit comments

Comments
 (0)