*/
static void printTestCase (FILE* ofp, _CCUnitTestCaseDef* tcdef)
{
- static int fxid = 0;
+ static int tcid = 0;
CCUnitListIterator fnitor;
_CCUnitFuncDef* fndef;
if (!tcdef->testdef.idname)
{
tcdef->testdef.idname = calloc (1, 8);
- fxid ++;
- sprintf (tcdef->testdef.idname, "fx_%03d", fxid);
+ tcid ++;
+ sprintf (tcdef->testdef.idname, "tc_%03d", tcid);
}
- fprintf (ofp, "static CCUnitTestFunc %s_cases[] = {\n", tcdef->testdef.idname);
+ fprintf (ofp, "static CCUnitTestFunc %s_funcs[] = {\n", tcdef->testdef.idname);
ccunit_initListIterator (&tcdef->testFuncs, &fnitor);
while ((fndef = ccunit_nextListIterator (&fnitor)) != NULL)
{
tcdef->testdef.idname,
ccunitTypeNames[tcdef->testdef.type],
!tcdef->testdef.name ? "NULL" : tcdef->testdef.name);
- fprintf (ofp, " %s_cases,\n", tcdef->testdef.idname);
+ fprintf (ofp, " %s_funcs,\n", tcdef->testdef.idname);
fputs ("};\n\n", ofp);
}