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
49d5ec71
Commit
49d5ec71
authored
Aug 13, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2517 from ethomson/no_win_unreadable
Don't include the unreadable tests on win32
parents
0707feee
c8402334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/status/worktree.c
+4
-0
No files found.
tests/status/worktree.c
View file @
49d5ec71
...
...
@@ -938,6 +938,7 @@ void test_status_worktree__update_stat_cache_0(void)
void
test_status_worktree__unreadable
(
void
)
{
#ifndef GIT_WIN32
const
char
*
expected_paths
[]
=
{
"no_permission/foo"
};
const
unsigned
int
expected_statuses
[]
=
{
GIT_STATUS_WT_UNREADABLE
};
...
...
@@ -966,10 +967,12 @@ void test_status_worktree__unreadable(void)
cl_assert_equal_i
(
counts
.
expected_entry_count
,
counts
.
entry_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_status_flags_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_sorted_path
);
#endif
}
void
test_status_worktree__unreadable_not_included
(
void
)
{
#ifndef GIT_WIN32
const
char
*
expected_paths
[]
=
{
"no_permission/"
};
const
unsigned
int
expected_statuses
[]
=
{
GIT_STATUS_WT_NEW
};
...
...
@@ -998,6 +1001,7 @@ void test_status_worktree__unreadable_not_included(void)
cl_assert_equal_i
(
counts
.
expected_entry_count
,
counts
.
entry_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_status_flags_count
);
cl_assert_equal_i
(
0
,
counts
.
wrong_sorted_path
);
#endif
}
void
test_status_worktree__unreadable_as_untracked
(
void
)
...
...
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