mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 16:34:37 +00:00
tests: index::version: move up cleanup function
The init and cleanup functions for test suites are usually prepended to our actual tests. The index::version test suite does not adhere to this stile. Fix this.
This commit is contained in:
parent
064a60e96f
commit
fea0c81e95
@ -3,6 +3,12 @@
|
||||
|
||||
static git_repository *g_repo = NULL;
|
||||
|
||||
void test_index_version__cleanup(void)
|
||||
{
|
||||
cl_git_sandbox_cleanup();
|
||||
g_repo = NULL;
|
||||
}
|
||||
|
||||
void test_index_version__can_write_v4(void)
|
||||
{
|
||||
git_index *index;
|
||||
@ -33,9 +39,3 @@ void test_index_version__can_write_v4(void)
|
||||
|
||||
git_index_free(index);
|
||||
}
|
||||
|
||||
void test_index_version__cleanup(void)
|
||||
{
|
||||
cl_git_sandbox_cleanup();
|
||||
g_repo = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user