summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd7a3bd)
raw | patch | inline | side by side (parent: cd7a3bd)
author | Amit Makani <amit.makani@ti.com> | |
Fri, 19 Jun 2020 07:09:00 +0000 (12:39 +0530) | ||
committer | Sivaraj R <sivaraj@ti.com> | |
Wed, 24 Jun 2020 17:01:18 +0000 (12:01 -0500) |
enabled all negative test case.
Signed-off-by: Amit Makani <amit.makani@ti.com>
Signed-off-by: Amit Makani <amit.makani@ti.com>
packages/ti/drv/ipc/examples/ex05_bios_multicore_echo_negative_test/ipc_neg_testsetup.c | patch | blob | history |
diff --git a/packages/ti/drv/ipc/examples/ex05_bios_multicore_echo_negative_test/ipc_neg_testsetup.c b/packages/ti/drv/ipc/examples/ex05_bios_multicore_echo_negative_test/ipc_neg_testsetup.c
index 61a2b4a1e9287893c0f619649b00986b7a929c5a..77213e8a57a5bcf2a97d94dbfa90577ade83a0b0 100644 (file)
if(test_rpmsg_snd_hndl_null_flag || test_rpmsg_rcv_hndl_null_flag ||
test_rpmsg_pkt_large_than_vring_buf_flag || test_rpmsg_snd_null_data_flag
- || test_rpmsg_snd_unpair_core_flag)
+ || test_rpmsg_snd_unpair_core_flag || test_rpmsg_remote_end_timeout_flag)
{
}
if(test_rpmsg_rcv_hndl_null_flag)
{
+ test_rpmsg_rcv_hndl_null_flag = 0;
status = RPMessage_recv(NULL, (Ptr)str, &len, &remoteEndPt, &remoteProcId,
IPC_RPMESSAGE_TIMEOUT_FOREVER);
if(status != IPC_SOK)
}
else if(test_rpmsg_rcv_timeout_flag)
{
+ test_rpmsg_rcv_timeout_flag = 0;
status = RPMessage_recv(handle, (Ptr)str, &len, &remoteEndPt, &remoteProcId, 100);
if(status != IPC_ETIMEOUT)
{
if(test_rpmsg_create_null_endpnt_flag)
{
+ test_rpmsg_create_null_endpnt_flag = 0;
handle = RPMessage_create(¶ms, NULL);
if(!handle)
{
if(test_rpmsg_remote_end_timeout_flag)
{
+ test_rpmsg_remote_end_timeout_flag = 0;
status = RPMessage_getRemoteEndPt(dstProc, SERVICE, &remoteProcId,
&remoteEndPt, 1000);
if(status != IPC_SOK)
if(test_rpmsg_pkt_large_than_vring_buf_flag)
{
+ test_rpmsg_pkt_large_than_vring_buf_flag = 0;
/* Send data to remote endPt: */
memset(test_buf, 0, RP_MSG_TEST_BUF_SIZE);
if(test_rpmsg_snd_null_data_flag)
{
+ test_rpmsg_snd_null_data_flag = 0;
status = RPMessage_send(handle, dstProc, ENDPT1, myEndPt, NULL, len);
if (status != IPC_SOK)
{
}
else if(test_rpmsg_snd_unpair_core_flag)
{
+ test_rpmsg_snd_unpair_core_flag = 0;
#ifdef BUILD_C66X_1
dstProc = IPC_C66X_1;
#endif
}
else if(test_rpmsg_snd_hndl_null_flag)
{
+ test_rpmsg_snd_hndl_null_flag = 0;
status = RPMessage_send(NULL, dstProc, ENDPT1, myEndPt, (Ptr)buf, len);
if (status != IPC_SOK)
{
Task_sleep(20000);
+ /* RPMessage_getRemoteEndPt timeout set to 1000 ticks for timeout */
+ g_neg_exitRespTsk = 0;
+ clear_all_test_flags();
+ test_rpmsg_remote_end_timeout_flag = 1;
+ ipc_neg_test();
+ rpmsg_neg_exit_responseTask();
+
+ Task_sleep(20000);
+
+ /* send RPMessage create end point as NULL */
+ g_neg_exitRespTsk = 0;
+ clear_all_test_flags();
+ test_rpmsg_create_null_endpnt_flag = 1;
+ ipc_neg_test();
+ rpmsg_neg_exit_responseTask();
+
+ Task_sleep(20000);
+
+ /* send NULL handle as part of RPMessag send */
+ g_neg_exitRespTsk = 0;
+ clear_all_test_flags();
+ test_rpmsg_snd_hndl_null_flag = 1;
+ ipc_neg_test();
+ rpmsg_neg_exit_responseTask();
+
+ Task_sleep(20000);
+
+ /* send NULL data as part of RPMessag send */
+ g_neg_exitRespTsk = 0;
+ clear_all_test_flags();
+ test_rpmsg_snd_null_data_flag = 1;
+ ipc_neg_test();
+ rpmsg_neg_exit_responseTask();
+
+ Task_sleep(20000);
+
+ /* send NULL data as part of RPMessag send */
+ g_neg_exitRespTsk = 0;
+ clear_all_test_flags();
+ test_rpmsg_snd_unpair_core_flag = 1;
+ ipc_neg_test();
+ rpmsg_neg_exit_responseTask();
+
return 0;
}