int main(int argc, char **argv)
{
	if (prepare_symlink_tree() != 0) {
		goto error_mkdir;
	}

	if (prepare_valid_results() != 0) {
		goto error_malloc;
	}

	plan_tests(num_valid_tests + num_invalid_tests + num_symlink_tests);

	diag("utils_expand_path tests");

	test_utils_expand_path();

	free_valid_results();
	free_symlink_tree();

	return exit_status();

error_malloc:
	free_valid_results();

error_mkdir:
	free_symlink_tree();

	return 1;
}
int main(int argc, char **argv)
{
	if (prepare_valid_results() != 0) {
		return 1;
	}

	plan_tests(num_valid_tests + num_invalid_tests);

	diag("utils_expand_path tests");

	test_utils_expand_path();

	free_valid_results();
	return exit_status();
}