Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-01-03 19:47:51 +0400
committerBen Straub <bs@github.com>2013-01-03 19:47:51 +0400
commit6fef1ab344326bbdeb45fd653e3c13c233600a35 (patch)
treed9f7815aa40bd563625d4a8a2d03d8cff238dd9c /tests-clar/odb
parent7761ce21625564b6526b89326c14a9843a1403d4 (diff)
Tests should clean up after themselves
Diffstat (limited to 'tests-clar/odb')
-rw-r--r--tests-clar/odb/alternates.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests-clar/odb/alternates.c b/tests-clar/odb/alternates.c
index 785d3bc84..c4b364b16 100644
--- a/tests-clar/odb/alternates.c
+++ b/tests-clar/odb/alternates.c
@@ -11,8 +11,13 @@ static git_repository *repo;
void test_odb_alternates__cleanup(void)
{
+ size_t i;
+
git_buf_free(&destpath);
git_buf_free(&filepath);
+
+ for (i=0; i<ARRAY_SIZE(paths); i++)
+ cl_fixture_cleanup(paths[i]);
}
static void init_linked_repo(const char *path, const char *alternate)