Commit 27133caf by Carlos Martín Nieto

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.
parent 5b05f954
...@@ -6,12 +6,12 @@ ...@@ -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) ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment