mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-12 03:28:09 +00:00
tests: move racy tests to the index
They fit there much better, even though we often check by diffing, it's about the behaviour of the index.
This commit is contained in:
parent
5b05f95424
commit
27133caf3c
@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
static git_repository *g_repo;
|
static git_repository *g_repo;
|
||||||
|
|
||||||
void test_diff_racy__initialize(void)
|
void test_index_racy__initialize(void)
|
||||||
{
|
{
|
||||||
cl_git_pass(git_repository_init(&g_repo, "diff_racy", false));
|
cl_git_pass(git_repository_init(&g_repo, "diff_racy", false));
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_diff_racy__cleanup(void)
|
void test_index_racy__cleanup(void)
|
||||||
{
|
{
|
||||||
git_repository_free(g_repo);
|
git_repository_free(g_repo);
|
||||||
g_repo = NULL;
|
g_repo = NULL;
|
||||||
@ -19,7 +19,7 @@ void test_diff_racy__cleanup(void)
|
|||||||
cl_fixture_cleanup("diff_racy");
|
cl_fixture_cleanup("diff_racy");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_diff_racy__diff(void)
|
void test_index_racy__diff(void)
|
||||||
{
|
{
|
||||||
git_index *index;
|
git_index *index;
|
||||||
git_diff *diff;
|
git_diff *diff;
|
||||||
@ -48,7 +48,7 @@ void test_diff_racy__diff(void)
|
|||||||
git_buf_free(&path);
|
git_buf_free(&path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_diff_racy__write_index_just_after_file(void)
|
void test_index_racy__write_index_just_after_file(void)
|
||||||
{
|
{
|
||||||
git_index *index;
|
git_index *index;
|
||||||
git_diff *diff;
|
git_diff *diff;
|
Loading…
Reference in New Issue
Block a user