mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 11:19:47 +00:00
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:
parent
12786e0f7c
commit
0e391d8526
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user