mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 00:43:41 +00:00
repo: readonly tests don't need a sandboxed repo
This commit is contained in:
parent
0e95e70a55
commit
5df7207a67
@ -1,15 +1,5 @@
|
||||
#include "clar_libgit2.h"
|
||||
|
||||
void test_repo_getters__initialize(void)
|
||||
{
|
||||
cl_fixture_sandbox("testrepo.git");
|
||||
}
|
||||
|
||||
void test_repo_getters__cleanup(void)
|
||||
{
|
||||
cl_fixture_cleanup("testrepo.git");
|
||||
}
|
||||
|
||||
void test_repo_getters__empty(void)
|
||||
{
|
||||
git_repository *repo_empty, *repo_normal;
|
||||
@ -28,7 +18,7 @@ void test_repo_getters__retrieving_the_odb_honors_the_refcount(void)
|
||||
git_odb *odb;
|
||||
git_repository *repo;
|
||||
|
||||
cl_git_pass(git_repository_open(&repo, "testrepo.git"));
|
||||
cl_git_pass(git_repository_open(&repo, cl_fixture("testrepo.git")));
|
||||
|
||||
cl_git_pass(git_repository_odb(&odb, repo));
|
||||
cl_assert(((git_refcount *)odb)->refcount == 2);
|
||||
|
Loading…
Reference in New Issue
Block a user