iterator: adjust unreadable-dir test to new behaviour

We don't want the iterator to make us stop whenever we hit an unreadable
dir. We should instead move over to the next item.
This commit is contained in:
Carlos Martín Nieto 2015-07-27 13:31:06 +02:00
parent 12786e0f7c
commit 0e391d8526

View File

@ -928,7 +928,7 @@ void test_repo_iterator__fs2(void)
git_iterator_free(i);
}
void test_repo_iterator__fs_preserves_error(void)
void test_repo_iterator__unreadable_dir(void)
{
git_iterator *i;
const git_index_entry *e;
@ -951,10 +951,6 @@ void test_repo_iterator__fs_preserves_error(void)
cl_git_pass(git_iterator_advance(&e, i)); /* a */
cl_git_fail(git_iterator_advance(&e, i)); /* b */
cl_assert(giterr_last());
cl_assert(giterr_last()->message != NULL);
/* skip 'c/' empty directory */
cl_git_pass(git_iterator_advance(&e, i)); /* d */
cl_assert_equal_i(GIT_ITEROVER, git_iterator_advance(&e, i));
cl_must_pass(p_chmod("empty_standard_repo/r/b", 0777));