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
c3252c11
Commit
c3252c11
authored
May 23, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We do expect the foo path in the nopermissions test
parent
c4366096
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/status/worktree.c
+2
-2
No files found.
tests/status/worktree.c
View file @
c3252c11
...
@@ -938,7 +938,7 @@ void test_status_worktree__update_stat_cache_0(void)
...
@@ -938,7 +938,7 @@ void test_status_worktree__update_stat_cache_0(void)
void
test_status_worktree__nopermissions
(
void
)
void
test_status_worktree__nopermissions
(
void
)
{
{
const
char
*
expected_paths
[]
=
{
"empty_standard_repo/no_permission"
};
const
char
*
expected_paths
[]
=
{
"empty_standard_repo/no_permission
/foo
"
};
const
unsigned
int
expected_statuses
[]
=
{
GIT_STATUS_WT_UNREADABLE
};
const
unsigned
int
expected_statuses
[]
=
{
GIT_STATUS_WT_UNREADABLE
};
git_repository
*
repo
=
cl_git_sandbox_init
(
"empty_standard_repo"
);
git_repository
*
repo
=
cl_git_sandbox_init
(
"empty_standard_repo"
);
...
@@ -956,7 +956,7 @@ void test_status_worktree__nopermissions(void)
...
@@ -956,7 +956,7 @@ void test_status_worktree__nopermissions(void)
counts
.
debug
=
1
;
counts
.
debug
=
1
;
opts
.
show
=
GIT_STATUS_SHOW_WORKDIR_ONLY
;
opts
.
show
=
GIT_STATUS_SHOW_WORKDIR_ONLY
;
opts
.
flags
=
GIT_STATUS_OPT_DEFAULTS
;
opts
.
flags
=
GIT_STATUS_OPT_DEFAULTS
|
GIT_DIFF_INCLUDE_UNREADABLE
;
cl_git_pass
(
cl_git_pass
(
git_status_foreach_ext
(
repo
,
&
opts
,
cb_status__normal
,
&
counts
)
);
git_status_foreach_ext
(
repo
,
&
opts
,
cb_status__normal
,
&
counts
)
);
...
...
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