Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-22 18:29:04 +0400
committerAlan Rogers <alan@github.com>2014-05-22 18:29:04 +0400
commitc3252c11bf3272d86e5a4bed3e32a9034c5d4aaa (patch)
tree28f6028a207ef23a841d071f22322e02f6819e43 /tests/status
parentc4366096d440570c84754c8751583ddf4748b6b2 (diff)
We do expect the foo path in the nopermissions test
Diffstat (limited to 'tests/status')
-rw-r--r--tests/status/worktree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/status/worktree.c b/tests/status/worktree.c
index e96d3a916..11a4420a5 100644
--- a/tests/status/worktree.c
+++ b/tests/status/worktree.c
@@ -938,7 +938,7 @@ void test_status_worktree__update_stat_cache_0(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};
git_repository *repo = cl_git_sandbox_init("empty_standard_repo");
@@ -956,7 +956,7 @@ void test_status_worktree__nopermissions(void)
counts.debug = 1;
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(
git_status_foreach_ext(repo, &opts, cb_status__normal, &counts) );