Commit 31b42eac by Russell Belfer

Restore commented out tests

This restores the commented out tests (even though they're slow)
and fixes some trailing whitespace.
parent 0a38eb42
...@@ -871,7 +871,7 @@ void test_diff_rename__from_deleted_to_split(void) ...@@ -871,7 +871,7 @@ void test_diff_rename__from_deleted_to_split(void)
struct rename_expected struct rename_expected
{ {
size_t len; size_t len;
unsigned int *status; unsigned int *status;
const char **sources; const char **sources;
const char **targets; const char **targets;
...@@ -1129,7 +1129,7 @@ void test_diff_rename__can_rename_from_rewrite(void) ...@@ -1129,7 +1129,7 @@ void test_diff_rename__can_rename_from_rewrite(void)
cl_git_pass( cl_git_pass(
git_diff_tree_to_index(&diff, g_repo, tree, index, &diffopts)); git_diff_tree_to_index(&diff, g_repo, tree, index, &diffopts));
findopts.flags |= GIT_DIFF_FIND_AND_BREAK_REWRITES | findopts.flags |= GIT_DIFF_FIND_AND_BREAK_REWRITES |
GIT_DIFF_FIND_REWRITES | GIT_DIFF_FIND_REWRITES |
GIT_DIFF_FIND_RENAMES_FROM_REWRITES; GIT_DIFF_FIND_RENAMES_FROM_REWRITES;
...@@ -1334,8 +1334,6 @@ void test_diff_rename__many_files(void) ...@@ -1334,8 +1334,6 @@ void test_diff_rename__many_files(void)
int i, j; int i, j;
git_buf b = GIT_BUF_INIT; git_buf b = GIT_BUF_INIT;
/*
cl_git_pass(git_repository_index(&index, g_repo)); cl_git_pass(git_repository_index(&index, g_repo));
for (i = 0; i < 100; i += 1) { for (i = 0; i < 100; i += 1) {
...@@ -1354,7 +1352,6 @@ void test_diff_rename__many_files(void) ...@@ -1354,7 +1352,6 @@ void test_diff_rename__many_files(void)
git_index_free(index); git_index_free(index);
test_with_many(100); test_with_many(100);
*/
} }
void test_diff_rename__again_many_files(void) void test_diff_rename__again_many_files(void)
...@@ -1364,8 +1361,6 @@ void test_diff_rename__again_many_files(void) ...@@ -1364,8 +1361,6 @@ void test_diff_rename__again_many_files(void)
int i; int i;
git_buf b = GIT_BUF_INIT; git_buf b = GIT_BUF_INIT;
/*
cl_git_pass(git_repository_index(&index, g_repo)); 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); 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) ...@@ -1386,5 +1381,4 @@ void test_diff_rename__again_many_files(void)
git_index_free(index); git_index_free(index);
test_with_many(2500); test_with_many(2500);
*/
} }
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