Racing condition at TC_CSE_DMR_*, TC_CSE_SUB_CRE_004, TC_CSE_SUB_DEL_001
In different test case execution the.
For example TC_CSE_DMR_UPD_003_ACP_LBL
...
if(getverdict == pass){ v_responsePrimitive := f_getResponsePrimitive(v_ae1);
...
v_primitiveContentRetrieveResource := f_getPrimitiveContentRetrievedResource(v_ae1);
...
but since inside the f_getResponsePrimitive no component done is made, sometimes we get inside f_getPrimitiveContentRetrievedResource a component already running and at the end of the testcase execution the may be not done.
inside the OneM2M_Functions
f_getResponsePrimitive
f_getRequestPrimitive
f_getPrimitiveContentRetrievedResource
f_getRemoteCseResource
f_getResource
we should always wait for component to be done
function f_getPrimitiveContentRetrievedResource(in AeSimu p_ae) runs on Tester return PrimitiveContent {
...
p_ae.start(f_sendPrimitiveContentRetrievedResource());
p_ae.done; <-- add this
}
function f_getRemoteCseResource(in CseSimu p_cse) runs on Tester return integer {
...
p_cse.start(f_sendRemoteCseResource());
p_cse.done; <-- add this
}
affected TCs
TC_CSE_DMR_*
TC_CSE_SUB_CRE_004
TC_CSE_SUB_DEL_001