summaryrefslogtreecommitdiff
path: root/tests/repo
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-08-30 19:33:18 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-08-31 11:48:12 -0400
commit4d19bced3f8156b4255997b553fed99746c2a785 (patch)
tree36f7f41e9e074719f979635a6dc711bcd9a1e895 /tests/repo
parentd53c8880696856d695b0979c55136b06e45d6fbb (diff)
downloadlibgit2-4d19bced3f8156b4255997b553fed99746c2a785.tar.gz
iterator test: use new iter opts in fifo test
Diffstat (limited to 'tests/repo')
-rw-r--r--tests/repo/iterator.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c
index 8eeb7d376..619e11842 100644
--- a/tests/repo/iterator.c
+++ b/tests/repo/iterator.c
@@ -1047,6 +1047,7 @@ void test_repo_iterator__skips_fifos_and_such(void)
#ifndef GIT_WIN32
git_iterator *i;
const git_index_entry *e;
+ git_iterator_options i_opts = GIT_ITERATOR_OPTIONS_INIT;
g_repo = cl_git_sandbox_init("empty_standard_repo");
@@ -1056,9 +1057,11 @@ void test_repo_iterator__skips_fifos_and_such(void)
cl_assert(!mkfifo("empty_standard_repo/fifo", 0777));
cl_assert(!access("empty_standard_repo/fifo", F_OK));
+ i_opts.flags = GIT_ITERATOR_INCLUDE_TREES |
+ GIT_ITERATOR_DONT_AUTOEXPAND;
+
cl_git_pass(git_iterator_for_filesystem(
- &i, "empty_standard_repo", GIT_ITERATOR_INCLUDE_TREES |
- GIT_ITERATOR_DONT_AUTOEXPAND, NULL, NULL));
+ &i, "empty_standard_repo", &i_opts));
cl_git_pass(git_iterator_advance(&e, i)); /* .git */
cl_assert(S_ISDIR(e->mode));