Skip to content

Commit

Permalink
tests: kernel: Change a mbox testcase that condition unsuitable
Browse files Browse the repository at this point in the history
Fix issue #33114 #33120. Modify the testcase that run failed on iotdk
and nsim. This testing do not need receive thread ID when invoke
k_mbox_data_get() with NULL param. The testcase purpose is invoke
this API with NULL buffer and NULL receive_id. It will cause fatal
error if use a uninitialize receive id.

Signed-off-by: Jian Kang <jianx.kang@intel.com>
  • Loading branch information
KangJianX authored and galak committed Mar 16, 2021
1 parent 5b6c898 commit ba51bbd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/kernel/mbox/mbox_api/src/test_mbox_api.c
Expand Up @@ -442,11 +442,8 @@ static void thread_mbox_data_get_null(void *p1, void *p2, void *p3)
get_msg.size = 16;
get_msg.rx_source_thread = K_ANY;
get_msg.tx_block.data = str_data;
get_msg._syncing_thread = receiver_tid;

k_mbox_data_get(&get_msg, NULL);

get_msg._syncing_thread = NULL;

k_mbox_data_get(&get_msg, NULL);
k_sem_give(&end_sema);
}
Expand Down

0 comments on commit ba51bbd

Please sign in to comment.