diff options
author | Yuang Li <yuangli88@hotmail.com> | 2022-09-05 10:38:53 +0100 |
---|---|---|
committer | Yuang Li <yuangli88@hotmail.com> | 2022-09-05 10:38:53 +0100 |
commit | 34de5c87fb118ffa177bf2e6a023aee72c4f46f7 (patch) | |
tree | e489c258152cbf63de6a0b3e5b0fb25d1728de5e /tests | |
parent | 89c1b019b7026406834ce0f68a18f255f4b36f99 (diff) | |
download | libgit2-34de5c87fb118ffa177bf2e6a023aee72c4f46f7.tar.gz |
fix seg faults
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libgit2/clone/nonetwork.c | 2 | ||||
-rw-r--r-- | tests/libgit2/clone/shallow.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/libgit2/clone/nonetwork.c b/tests/libgit2/clone/nonetwork.c index 0c4e5a87d..eab633635 100644 --- a/tests/libgit2/clone/nonetwork.c +++ b/tests/libgit2/clone/nonetwork.c @@ -296,6 +296,8 @@ void test_clone_nonetwork__clone_tag_to_tree(void) cl_git_pass(git_tree_entry_bypath(&tentry, tree, file_path)); git_tree_entry_free(tentry); git_tree_free(tree); + + cl_fixture_cleanup("testrepo.git"); } static void assert_correct_reflog(const char *name) diff --git a/tests/libgit2/clone/shallow.c b/tests/libgit2/clone/shallow.c index 2a88d5d05..b0114081c 100644 --- a/tests/libgit2/clone/shallow.c +++ b/tests/libgit2/clone/shallow.c @@ -10,7 +10,7 @@ void test_clone_shallow__initialize(void) void test_clone_shallow__cleanup(void) { git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0); - cl_git_sandbox_cleanup(); + /*cl_git_sandbox_cleanup();*/ } static int remote_single_branch(git_remote **out, git_repository *repo, const char *name, const char *url, void *payload) |