diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-30 00:46:47 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-30 00:46:47 +0300 |
commit | 9d4b7d25241ca9deb85d128de21fd5ba35e21d28 (patch) | |
tree | 63ee38babd7efe0e6c7332bec1693b55fbc61a30 /tests | |
parent | a8058ffda7cd92bb8eeb61e8cb5d0e6ca0075ebc (diff) | |
parent | 0e391d8526032008a53fd3e8f7c6795d59ebdb5f (diff) |
Merge pull request #3328 from libgit2/cmn/iterator-skip-diriter
iterator: skip over errors in diriter init
Diffstat (limited to 'tests')
-rw-r--r-- | tests/repo/iterator.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c index 26e8954fe..bb2d3a186 100644 --- a/tests/repo/iterator.c +++ b/tests/repo/iterator.c @@ -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)); |