Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
4d19bced
Commit
4d19bced
authored
Aug 30, 2015
by
Edward Thomson
Committed by
Edward Thomson
Aug 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iterator test: use new iter opts in fifo test
parent
d53c8880
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/repo/iterator.c
+5
-2
No files found.
tests/repo/iterator.c
View file @
4d19bced
...
@@ -1047,6 +1047,7 @@ void test_repo_iterator__skips_fifos_and_such(void)
...
@@ -1047,6 +1047,7 @@ void test_repo_iterator__skips_fifos_and_such(void)
#ifndef GIT_WIN32
#ifndef GIT_WIN32
git_iterator
*
i
;
git_iterator
*
i
;
const
git_index_entry
*
e
;
const
git_index_entry
*
e
;
git_iterator_options
i_opts
=
GIT_ITERATOR_OPTIONS_INIT
;
g_repo
=
cl_git_sandbox_init
(
"empty_standard_repo"
);
g_repo
=
cl_git_sandbox_init
(
"empty_standard_repo"
);
...
@@ -1056,9 +1057,11 @@ void test_repo_iterator__skips_fifos_and_such(void)
...
@@ -1056,9 +1057,11 @@ void test_repo_iterator__skips_fifos_and_such(void)
cl_assert
(
!
mkfifo
(
"empty_standard_repo/fifo"
,
0777
));
cl_assert
(
!
mkfifo
(
"empty_standard_repo/fifo"
,
0777
));
cl_assert
(
!
access
(
"empty_standard_repo/fifo"
,
F_OK
));
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
(
cl_git_pass
(
git_iterator_for_filesystem
(
&
i
,
"empty_standard_repo"
,
GIT_ITERATOR_INCLUDE_TREES
|
&
i
,
"empty_standard_repo"
,
&
i_opts
));
GIT_ITERATOR_DONT_AUTOEXPAND
,
NULL
,
NULL
));
cl_git_pass
(
git_iterator_advance
(
&
e
,
i
));
/* .git */
cl_git_pass
(
git_iterator_advance
(
&
e
,
i
));
/* .git */
cl_assert
(
S_ISDIR
(
e
->
mode
));
cl_assert
(
S_ISDIR
(
e
->
mode
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment