|
被测函数:
uchar fl_evt_tmr(struct TASK_IF_MSG *rcvmsg)
{
ful_port = ful_getecb - ECB_MUL_TM1;
if(ful_telno[ful_port].dialwait_tmid != 0xff)
{
tm_inptm(ful_port,STOP,0); /* RGW1.1 I */
ful_telno[ful_port].event = EVENT_DIAL_TO;
return 0;
}
if(ful_telno[ful_port].hwtwait_tmid != 0xff)
{
tm_onhtm(ful_port,STOP); /* RGW1.1 I */
ful_telno[ful_port].event = EVENT_ONHOOK_TO;
return 0;
}
if(ful_telno[ful_port].dialpause_tmid != 0xff)
{
tm_inttm(ful_port,STOP,0); /* RGW1.1 I */
ful_telno[ful_port].event = EVENT_KETA_TO;
return 0;
}
if(ful_telno[ful_port].trmlock_tmid != 0xff)
{
tm_loctm(ful_port,STOP);
ful_telno[ful_port].event = EVENT_ONHOOK_TO;
return 0;
}
return 1;
}
其中红色为常量,紫色为全局变量,绿色为函数,蓝色为输入。
试问,在这里输入有用吗?个人认为只要测各分支里的ful_telno[ful_port].event 的值就行了,
不知大侠有什么更好的意见。谢谢啊~~~~~~ |
|