Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
c9f1658e
Commit
c9f1658e
authored
Nov 23, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1098 from scunz/cleanup_in_cleanup
Reset all static variables to NULL in clar's __cleanup
parents
e226861e
9094d30b
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
153 additions
and
15 deletions
+153
-15
tests-clar/checkout/tree.c
+1
-0
tests-clar/clone/network.c
+3
-1
tests-clar/clone/nonetwork.c
+4
-1
tests-clar/commit/commit.c
+2
-0
tests-clar/commit/parent.c
+3
-0
tests-clar/commit/write.c
+11
-5
tests-clar/core/env.c
+1
-0
tests-clar/diff/blob.c
+3
-0
tests-clar/fetchhead/network.c
+4
-1
tests-clar/fetchhead/nonetwork.c
+4
-1
tests-clar/index/conflicts.c
+2
-0
tests-clar/index/reuc.c
+2
-0
tests-clar/index/stage.c
+2
-0
tests-clar/network/createremotethenload.c
+4
-0
tests-clar/network/fetch.c
+2
-0
tests-clar/network/remotelocal.c
+6
-1
tests-clar/network/remoterename.c
+1
-0
tests-clar/network/remotes.c
+2
-0
tests-clar/notes/notes.c
+2
-0
tests-clar/notes/notesref.c
+7
-0
tests-clar/object/commit/commitstagedfile.c
+2
-0
tests-clar/object/lookup.c
+2
-1
tests-clar/object/peel.c
+1
-0
tests-clar/object/tag/peel.c
+5
-0
tests-clar/object/tree/frompath.c
+3
-0
tests-clar/odb/mixed.c
+1
-0
tests-clar/odb/packed.c
+1
-0
tests-clar/odb/packed_one.c
+1
-0
tests-clar/pack/packbuilder.c
+15
-3
tests-clar/refs/branches/create.c
+4
-0
tests-clar/refs/branches/delete.c
+3
-0
tests-clar/refs/branches/foreach.c
+3
-0
tests-clar/refs/branches/ishead.c
+3
-0
tests-clar/refs/branches/lookup.c
+2
-0
tests-clar/refs/branches/move.c
+2
-0
tests-clar/refs/branches/tracking.c
+2
-0
tests-clar/refs/foreachglob.c
+3
-0
tests-clar/refs/peel.c
+1
-0
tests-clar/refs/read.c
+1
-0
tests-clar/refs/reflog/drop.c
+1
-0
tests-clar/refs/unicode.c
+2
-0
tests-clar/repo/head.c
+1
-1
tests-clar/repo/init.c
+2
-0
tests-clar/repo/setters.c
+2
-0
tests-clar/reset/hard.c
+2
-0
tests-clar/reset/mixed.c
+2
-0
tests-clar/reset/soft.c
+2
-0
tests-clar/revwalk/basic.c
+2
-0
tests-clar/revwalk/mergebase.c
+1
-0
tests-clar/revwalk/signatureparsing.c
+3
-0
tests-clar/stash/drop.c
+4
-0
tests-clar/stash/foreach.c
+4
-0
tests-clar/stash/save.c
+4
-0
No files found.
tests-clar/checkout/tree.c
View file @
c9f1658e
...
...
@@ -18,6 +18,7 @@ void test_checkout_tree__initialize(void)
void
test_checkout_tree__cleanup
(
void
)
{
git_object_free
(
g_object
);
g_object
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/clone/network.c
View file @
c9f1658e
...
...
@@ -17,8 +17,10 @@ void test_clone_network__initialize(void)
static
void
cleanup_repository
(
void
*
path
)
{
if
(
g_repo
)
if
(
g_repo
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
cl_fixture_cleanup
((
const
char
*
)
path
);
}
...
...
tests-clar/clone/nonetwork.c
View file @
c9f1658e
...
...
@@ -14,8 +14,11 @@ void test_clone_nonetwork__initialize(void)
static
void
cleanup_repository
(
void
*
path
)
{
if
(
g_repo
)
if
(
g_repo
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
cl_fixture_cleanup
((
const
char
*
)
path
);
}
...
...
tests-clar/commit/commit.c
View file @
c9f1658e
...
...
@@ -11,6 +11,8 @@ void test_commit_commit__initialize(void)
void
test_commit_commit__cleanup
(
void
)
{
git_repository_free
(
_repo
);
_repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/commit/parent.c
View file @
c9f1658e
...
...
@@ -16,7 +16,10 @@ void test_commit_parent__initialize(void)
void
test_commit_parent__cleanup
(
void
)
{
git_commit_free
(
commit
);
commit
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
}
static
void
assert_nth_gen_parent
(
unsigned
int
gen
,
const
char
*
expected_oid
)
...
...
tests-clar/commit/write.c
View file @
c9f1658e
...
...
@@ -17,16 +17,22 @@ void test_commit_write__initialize(void)
{
g_repo
=
cl_git_sandbox_init
(
"testrepo"
);
}
void
test_commit_write__cleanup
(
void
)
{
git_reference_free
(
head
);
git_reference_free
(
branch
);
git_reference_free
(
head
);
head
=
NULL
;
git_reference_free
(
branch
);
branch
=
NULL
;
git_commit_free
(
commit
);
git_commit_free
(
commit
);
commit
=
NULL
;
git__free
(
head_old
);
git__free
(
head_old
);
head_old
=
NULL
;
cl_git_sandbox_cleanup
();
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/core/env.c
View file @
c9f1658e
...
...
@@ -29,6 +29,7 @@ void test_core_env__cleanup(void)
#ifdef GIT_WIN32
git__free
(
env_save
[
i
]);
#endif
env_save
[
i
]
=
NULL
;
}
}
...
...
tests-clar/diff/blob.c
View file @
c9f1658e
...
...
@@ -30,7 +30,10 @@ void test_diff_blob__initialize(void)
void
test_diff_blob__cleanup
(
void
)
{
git_blob_free
(
d
);
d
=
NULL
;
git_blob_free
(
alien
);
alien
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/fetchhead/network.c
View file @
c9f1658e
...
...
@@ -18,8 +18,11 @@ void test_fetchhead_network__initialize(void)
static
void
cleanup_repository
(
void
*
path
)
{
if
(
g_repo
)
if
(
g_repo
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
cl_fixture_cleanup
((
const
char
*
)
path
);
}
...
...
tests-clar/fetchhead/nonetwork.c
View file @
c9f1658e
...
...
@@ -15,8 +15,11 @@ void test_fetchhead_nonetwork__initialize(void)
static
void
cleanup_repository
(
void
*
path
)
{
if
(
g_repo
)
if
(
g_repo
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
cl_fixture_cleanup
((
const
char
*
)
path
);
}
...
...
tests-clar/index/conflicts.c
View file @
c9f1658e
...
...
@@ -30,6 +30,8 @@ void test_index_conflicts__initialize(void)
void
test_index_conflicts__cleanup
(
void
)
{
git_index_free
(
repo_index
);
repo_index
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/index/reuc.c
View file @
c9f1658e
...
...
@@ -26,6 +26,8 @@ void test_index_reuc__initialize(void)
void
test_index_reuc__cleanup
(
void
)
{
git_index_free
(
repo_index
);
repo_index
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/index/stage.c
View file @
c9f1658e
...
...
@@ -18,6 +18,8 @@ void test_index_stage__initialize(void)
void
test_index_stage__cleanup
(
void
)
{
git_index_free
(
repo_index
);
repo_index
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/network/createremotethenload.c
View file @
c9f1658e
...
...
@@ -22,7 +22,11 @@ void test_network_createremotethenload__initialize(void)
void
test_network_createremotethenload__cleanup
(
void
)
{
git_remote_free
(
_remote
);
_remote
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/network/fetch.c
View file @
c9f1658e
...
...
@@ -13,6 +13,8 @@ void test_network_fetch__initialize(void)
void
test_network_fetch__cleanup
(
void
)
{
git_repository_free
(
_repo
);
_repo
=
NULL
;
cl_fixture_cleanup
(
"./fetch"
);
}
...
...
tests-clar/network/remotelocal.c
View file @
c9f1658e
...
...
@@ -15,9 +15,14 @@ void test_network_remotelocal__initialize(void)
void
test_network_remotelocal__cleanup
(
void
)
{
git_remote_free
(
remote
);
git_buf_free
(
&
file_path_buf
);
git_remote_free
(
remote
);
remote
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"remotelocal"
);
}
...
...
tests-clar/network/remoterename.c
View file @
c9f1658e
...
...
@@ -16,6 +16,7 @@ void test_network_remoterename__initialize(void)
void
test_network_remoterename__cleanup
(
void
)
{
git_remote_free
(
_remote
);
_remote
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/network/remotes.c
View file @
c9f1658e
...
...
@@ -20,6 +20,8 @@ void test_network_remotes__initialize(void)
void
test_network_remotes__cleanup
(
void
)
{
git_remote_free
(
_remote
);
_remote
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/notes/notes.c
View file @
c9f1658e
...
...
@@ -12,6 +12,8 @@ void test_notes_notes__initialize(void)
void
test_notes_notes__cleanup
(
void
)
{
git_signature_free
(
_sig
);
_sig
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/notes/notesref.c
View file @
c9f1658e
...
...
@@ -16,10 +16,17 @@ void test_notes_notesref__initialize(void)
void
test_notes_notesref__cleanup
(
void
)
{
git_note_free
(
_note
);
_note
=
NULL
;
git_signature_free
(
_sig
);
_sig
=
NULL
;
git_config_free
(
_cfg
);
_cfg
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/object/commit/commitstagedfile.c
View file @
c9f1658e
...
...
@@ -13,6 +13,8 @@ void test_object_commit_commitstagedfile__initialize(void)
void
test_object_commit_commitstagedfile__cleanup
(
void
)
{
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"treebuilder"
);
}
...
...
tests-clar/object/lookup.c
View file @
c9f1658e
...
...
@@ -11,7 +11,8 @@ void test_object_lookup__initialize(void)
void
test_object_lookup__cleanup
(
void
)
{
git_repository_free
(
g_repo
);
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
void
test_object_lookup__lookup_wrong_type_returns_enotfound
(
void
)
...
...
tests-clar/object/peel.c
View file @
c9f1658e
...
...
@@ -10,6 +10,7 @@ void test_object_peel__initialize(void)
void
test_object_peel__cleanup
(
void
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
static
void
assert_peel
(
...
...
tests-clar/object/tag/peel.c
View file @
c9f1658e
...
...
@@ -14,8 +14,13 @@ void test_object_tag_peel__initialize(void)
void
test_object_tag_peel__cleanup
(
void
)
{
git_tag_free
(
tag
);
tag
=
NULL
;
git_object_free
(
target
);
target
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/object/tree/frompath.c
View file @
c9f1658e
...
...
@@ -19,7 +19,10 @@ void test_object_tree_frompath__initialize(void)
void
test_object_tree_frompath__cleanup
(
void
)
{
git_tree_free
(
tree
);
tree
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
}
static
void
assert_tree_from_path
(
...
...
tests-clar/odb/mixed.c
View file @
c9f1658e
...
...
@@ -11,6 +11,7 @@ void test_odb_mixed__initialize(void)
void
test_odb_mixed__cleanup
(
void
)
{
git_odb_free
(
_odb
);
_odb
=
NULL
;
}
void
test_odb_mixed__dup_oid
(
void
)
{
...
...
tests-clar/odb/packed.c
View file @
c9f1658e
...
...
@@ -12,6 +12,7 @@ void test_odb_packed__initialize(void)
void
test_odb_packed__cleanup
(
void
)
{
git_odb_free
(
_odb
);
_odb
=
NULL
;
}
void
test_odb_packed__mass_read
(
void
)
...
...
tests-clar/odb/packed_one.c
View file @
c9f1658e
...
...
@@ -17,6 +17,7 @@ void test_odb_packed_one__initialize(void)
void
test_odb_packed_one__cleanup
(
void
)
{
git_odb_free
(
_odb
);
_odb
=
NULL
;
}
void
test_odb_packed_one__mass_read
(
void
)
...
...
tests-clar/pack/packbuilder.c
View file @
c9f1658e
...
...
@@ -7,6 +7,7 @@ static git_revwalk *_revwalker;
static
git_packbuilder
*
_packbuilder
;
static
git_indexer
*
_indexer
;
static
git_vector
_commits
;
static
int
_commits_is_initialized
;
void
test_pack_packbuilder__initialize
(
void
)
{
...
...
@@ -14,6 +15,7 @@ void test_pack_packbuilder__initialize(void)
cl_git_pass
(
git_revwalk_new
(
&
_revwalker
,
_repo
));
cl_git_pass
(
git_packbuilder_new
(
&
_packbuilder
,
_repo
));
cl_git_pass
(
git_vector_init
(
&
_commits
,
0
,
NULL
));
_commits_is_initialized
=
1
;
}
void
test_pack_packbuilder__cleanup
(
void
)
...
...
@@ -21,15 +23,25 @@ void test_pack_packbuilder__cleanup(void)
git_oid
*
o
;
unsigned
int
i
;
git_vector_foreach
(
&
_commits
,
i
,
o
)
{
git__free
(
o
);
if
(
_commits_is_initialized
)
{
_commits_is_initialized
=
0
;
git_vector_foreach
(
&
_commits
,
i
,
o
)
{
git__free
(
o
);
}
git_vector_free
(
&
_commits
);
}
git_vector_free
(
&
_commits
);
git_packbuilder_free
(
_packbuilder
);
_packbuilder
=
NULL
;
git_revwalk_free
(
_revwalker
);
_revwalker
=
NULL
;
git_indexer_free
(
_indexer
);
_indexer
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
}
static
void
seed_packbuilder
(
void
)
...
...
tests-clar/refs/branches/create.c
View file @
c9f1658e
...
...
@@ -16,9 +16,13 @@ void test_refs_branches_create__initialize(void)
void
test_refs_branches_create__cleanup
(
void
)
{
git_reference_free
(
branch
);
branch
=
NULL
;
git_object_free
(
target
);
target
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/refs/branches/delete.c
View file @
c9f1658e
...
...
@@ -20,7 +20,10 @@ void test_refs_branches_delete__initialize(void)
void
test_refs_branches_delete__cleanup
(
void
)
{
git_reference_free
(
fake_remote
);
fake_remote
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/refs/branches/foreach.c
View file @
c9f1658e
...
...
@@ -18,7 +18,10 @@ void test_refs_branches_foreach__initialize(void)
void
test_refs_branches_foreach__cleanup
(
void
)
{
git_reference_free
(
fake_remote
);
fake_remote
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/refs/branches/ishead.c
View file @
c9f1658e
...
...
@@ -13,7 +13,10 @@ void test_refs_branches_ishead__initialize(void)
void
test_refs_branches_ishead__cleanup
(
void
)
{
git_reference_free
(
branch
);
branch
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
}
void
test_refs_branches_ishead__can_tell_if_a_branch_is_pointed_at_by_HEAD
(
void
)
...
...
tests-clar/refs/branches/lookup.c
View file @
c9f1658e
...
...
@@ -14,8 +14,10 @@ void test_refs_branches_lookup__initialize(void)
void
test_refs_branches_lookup__cleanup
(
void
)
{
git_reference_free
(
branch
);
branch
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
}
void
test_refs_branches_lookup__can_retrieve_a_local_branch
(
void
)
...
...
tests-clar/refs/branches/move.c
View file @
c9f1658e
...
...
@@ -15,6 +15,8 @@ void test_refs_branches_move__initialize(void)
void
test_refs_branches_move__cleanup
(
void
)
{
git_reference_free
(
ref
);
ref
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/refs/branches/tracking.c
View file @
c9f1658e
...
...
@@ -14,8 +14,10 @@ void test_refs_branches_tracking__initialize(void)
void
test_refs_branches_tracking__cleanup
(
void
)
{
git_reference_free
(
branch
);
branch
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
}
void
test_refs_branches_tracking__can_retrieve_the_remote_tracking_reference_of_a_local_branch
(
void
)
...
...
tests-clar/refs/foreachglob.c
View file @
c9f1658e
...
...
@@ -18,7 +18,10 @@ void test_refs_foreachglob__initialize(void)
void
test_refs_foreachglob__cleanup
(
void
)
{
git_reference_free
(
fake_remote
);
fake_remote
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/refs/peel.c
View file @
c9f1658e
...
...
@@ -10,6 +10,7 @@ void test_refs_peel__initialize(void)
void
test_refs_peel__cleanup
(
void
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
static
void
assert_peel
(
...
...
tests-clar/refs/read.c
View file @
c9f1658e
...
...
@@ -22,6 +22,7 @@ void test_refs_read__initialize(void)
void
test_refs_read__cleanup
(
void
)
{
git_repository_free
(
g_repo
);
g_repo
=
NULL
;
}
void
test_refs_read__loose_tag
(
void
)
...
...
tests-clar/refs/reflog/drop.c
View file @
c9f1658e
...
...
@@ -22,6 +22,7 @@ void test_refs_reflog_drop__initialize(void)
void
test_refs_reflog_drop__cleanup
(
void
)
{
git_reflog_free
(
g_reflog
);
g_reflog
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/refs/unicode.c
View file @
c9f1658e
...
...
@@ -12,6 +12,8 @@ void test_refs_unicode__initialize(void)
void
test_refs_unicode__cleanup
(
void
)
{
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
}
...
...
tests-clar/repo/head.c
View file @
c9f1658e
...
...
@@ -3,7 +3,7 @@
#include "repo_helpers.h"
#include "posix.h"
git_repository
*
repo
;
static
git_repository
*
repo
;
void
test_repo_head__initialize
(
void
)
{
...
...
tests-clar/repo/init.c
View file @
c9f1658e
...
...
@@ -19,6 +19,8 @@ void test_repo_init__initialize(void)
static
void
cleanup_repository
(
void
*
path
)
{
git_repository_free
(
_repo
);
_repo
=
NULL
;
cl_fixture_cleanup
((
const
char
*
)
path
);
}
...
...
tests-clar/repo/setters.c
View file @
c9f1658e
...
...
@@ -17,6 +17,8 @@ void test_repo_setters__initialize(void)
void
test_repo_setters__cleanup
(
void
)
{
git_repository_free
(
repo
);
repo
=
NULL
;
cl_fixture_cleanup
(
"testrepo.git"
);
cl_fixture_cleanup
(
"new_workdir"
);
}
...
...
tests-clar/reset/hard.c
View file @
c9f1658e
...
...
@@ -16,6 +16,8 @@ void test_reset_hard__initialize(void)
void
test_reset_hard__cleanup
(
void
)
{
git_object_free
(
target
);
target
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/reset/mixed.c
View file @
c9f1658e
...
...
@@ -15,6 +15,8 @@ void test_reset_mixed__initialize(void)
void
test_reset_mixed__cleanup
(
void
)
{
git_object_free
(
target
);
target
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/reset/soft.c
View file @
c9f1658e
...
...
@@ -15,6 +15,8 @@ void test_reset_soft__initialize(void)
void
test_reset_soft__cleanup
(
void
)
{
git_object_free
(
target
);
target
=
NULL
;
cl_git_sandbox_cleanup
();
}
...
...
tests-clar/revwalk/basic.c
View file @
c9f1658e
...
...
@@ -103,7 +103,9 @@ void test_revwalk_basic__initialize(void)
void
test_revwalk_basic__cleanup
(
void
)
{
git_revwalk_free
(
_walk
);
_walk
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
}
void
test_revwalk_basic__sorting_modes
(
void
)
...
...
tests-clar/revwalk/mergebase.c
View file @
c9f1658e
...
...
@@ -12,6 +12,7 @@ void test_revwalk_mergebase__initialize(void)
void
test_revwalk_mergebase__cleanup
(
void
)
{
git_repository_free
(
_repo
);
_repo
=
NULL
;
}
void
test_revwalk_mergebase__single1
(
void
)
...
...
tests-clar/revwalk/signatureparsing.c
View file @
c9f1658e
...
...
@@ -12,7 +12,10 @@ void test_revwalk_signatureparsing__initialize(void)
void
test_revwalk_signatureparsing__cleanup
(
void
)
{
git_revwalk_free
(
_walk
);
_walk
=
NULL
;
git_repository_free
(
_repo
);
_repo
=
NULL
;
}
void
test_revwalk_signatureparsing__do_not_choke_when_name_contains_angle_brackets
(
void
)
...
...
tests-clar/stash/drop.c
View file @
c9f1658e
...
...
@@ -14,7 +14,11 @@ void test_stash_drop__initialize(void)
void
test_stash_drop__cleanup
(
void
)
{
git_signature_free
(
signature
);
signature
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_git_pass
(
git_futils_rmdir_r
(
"stash"
,
NULL
,
GIT_RMDIR_REMOVE_FILES
));
}
...
...
tests-clar/stash/foreach.c
View file @
c9f1658e
...
...
@@ -29,7 +29,11 @@ void test_stash_foreach__initialize(void)
void
test_stash_foreach__cleanup
(
void
)
{
git_signature_free
(
signature
);
signature
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_git_pass
(
git_futils_rmdir_r
(
REPO_NAME
,
NULL
,
GIT_RMDIR_REMOVE_FILES
));
}
...
...
tests-clar/stash/save.c
View file @
c9f1658e
...
...
@@ -26,7 +26,11 @@ void test_stash_save__initialize(void)
void
test_stash_save__cleanup
(
void
)
{
git_signature_free
(
signature
);
signature
=
NULL
;
git_repository_free
(
repo
);
repo
=
NULL
;
cl_git_pass
(
git_futils_rmdir_r
(
"stash"
,
NULL
,
GIT_RMDIR_REMOVE_FILES
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment