|
以下是被测函数:
void line_c_close_session_req( struct LINE_C_WORK *wk )
{
struct TASK_IF_HEAD *sndmsg;
struct ISESS_PARA *sndmsg2;
line_c_snd_msg2 = (uchar *)p_pool_get(POOL09);/*p_pool_get:创建一个空间*/
sndmsg2 = (struct ISESS_PARA *)line_c_snd_msg2;
sndmsg2->request = 0x00;
line_c_snd_msg = (uchar *)p_pool_get(POOL00);
sndmsg = (struct TASK_IF_HEAD *)line_c_snd_msg;
sndmsg->marker = MMK_CLOSE_SESSION_REQ;
sndmsg->inf = MID_CLOSE_SESSION_REQ;
sndmsg->result = CLR;
sndmsg->session_no = CLR;
sndmsg->codec = CLR;
sndmsg->ptr = (uchar *)sndmsg2;
sndmsg->active_mode = CLR;
sndmsg->use_tel = wk->no;
sndmsg->ret_ecb = ECB_LINE_K;
OS_XPOST(ECB_SM,line_c_snd_msg);/*返回值为0*/
return;
绿色的是函数,红色的为常量,紫色的为输入。如何写testcase呢? |
|