Restore commented out tests This restores the commented out tests (even though they're slow) and fixes some trailing whitespace.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
diff --git a/tests-clar/diff/rename.c b/tests-clar/diff/rename.c
index b78122c..5555501 100644
--- a/tests-clar/diff/rename.c
+++ b/tests-clar/diff/rename.c
@@ -871,7 +871,7 @@ void test_diff_rename__from_deleted_to_split(void)
struct rename_expected
{
size_t len;
-
+
unsigned int *status;
const char **sources;
const char **targets;
@@ -1129,7 +1129,7 @@ void test_diff_rename__can_rename_from_rewrite(void)
cl_git_pass(
git_diff_tree_to_index(&diff, g_repo, tree, index, &diffopts));
-
+
findopts.flags |= GIT_DIFF_FIND_AND_BREAK_REWRITES |
GIT_DIFF_FIND_REWRITES |
GIT_DIFF_FIND_RENAMES_FROM_REWRITES;
@@ -1334,8 +1334,6 @@ void test_diff_rename__many_files(void)
int i, j;
git_buf b = GIT_BUF_INIT;
-/*
-
cl_git_pass(git_repository_index(&index, g_repo));
for (i = 0; i < 100; i += 1) {
@@ -1354,7 +1352,6 @@ void test_diff_rename__many_files(void)
git_index_free(index);
test_with_many(100);
-*/
}
void test_diff_rename__again_many_files(void)
@@ -1364,8 +1361,6 @@ void test_diff_rename__again_many_files(void)
int i;
git_buf b = GIT_BUF_INIT;
-/*
-
cl_git_pass(git_repository_index(&index, g_repo));
git_buf_printf(&b, "%08d\n" ANOTHER_POEM "%08d\n" ANOTHER_POEM ANOTHER_POEM, 0, 0);
@@ -1386,5 +1381,4 @@ void test_diff_rename__again_many_files(void)
git_index_free(index);
test_with_many(2500);
-*/
}