Commit f01fa266 by Russell Belfer

Fix workdir iterator unit tests

This test is fragile if you leave extra files in the test
data directory, such as a foo.c~ file from editing with
Emacs.  Who would do such a thing?
parent 290f240e
...@@ -312,7 +312,7 @@ static void workdir_iterator_test( ...@@ -312,7 +312,7 @@ static void workdir_iterator_test(
while (entry != NULL) { while (entry != NULL) {
int ignored = git_iterator_current_is_ignored(i); int ignored = git_iterator_current_is_ignored(i);
if (!ignored && S_ISDIR(entry->mode)) { if (S_ISDIR(entry->mode)) {
cl_git_pass(git_iterator_advance_into_directory(i, &entry)); cl_git_pass(git_iterator_advance_into_directory(i, &entry));
continue; continue;
} }
...@@ -338,7 +338,7 @@ static void workdir_iterator_test( ...@@ -338,7 +338,7 @@ static void workdir_iterator_test(
void test_diff_iterator__workdir_0(void) void test_diff_iterator__workdir_0(void)
{ {
workdir_iterator_test("attr", 15, 4, NULL, "ign"); workdir_iterator_test("attr", 24, 2, NULL, "ign");
} }
static const char *status_paths[] = { static const char *status_paths[] = {
......
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