Example #1
0
int TestEnvConfigTestTeardown(CuTest *ct) {
	struct context *info;
	FILE *fp;
	char *path;

	info = ct->context;
	assert(info != NULL);
	fp = info->fp;
	path = info->path;
	if (fp != NULL)
		fclose(fp);
	if (path != NULL)
		free(path);
	free(info);
	ct->context = NULL;
	teardown_envdir(TEST_ENV);
	return (0);
}
Example #2
0
int TestEnvConfigTestTeardown(CuTest *ct) {
    teardown_envdir(TEST_ENV);
    return (0);
}