Ejemplo n.º 1
0
void CuSuiteFreeDeep(CuSuite *testSuite)
{
    int i;
    for (i = 0 ; i < testSuite->count ; ++i)
    {
        CuTest* testCase = testSuite->list[i];
        CuTestFree(testCase);
    }
    free(testSuite);
}
Ejemplo n.º 2
0
void CuSuiteDestroy( CuSuite* suite )
{
	int i;
	if(!suite) return;

	for( i = 0; i < suite->count; i++)
	{
		if( suite->list[i] ) CuTestFree( suite->list[i] );
	}

	free( suite );
}