summaryrefslogtreecommitdiff
path: root/tests/status
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-30 16:22:26 -0700
committerAlan Rogers <alan@github.com>2014-05-30 16:22:26 -0700
commit523553f902490935084ea39694c06738bfae4a3e (patch)
tree0f06a41329eb54b6cde996f90bc73b9e89e13a7c /tests/status
parent59fcebaa89d6ebdadf59c08c3bee030ce84765a1 (diff)
downloadlibgit2-523553f902490935084ea39694c06738bfae4a3e.tar.gz
Fix the no permissions test.
Diffstat (limited to 'tests/status')
-rw-r--r--tests/status/worktree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/status/worktree.c b/tests/status/worktree.c
index 11a4420a5..5e1399b8a 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/foo" };
+ const char *expected_paths[] = { "no_permission/foo" };
const unsigned int expected_statuses[] = {GIT_STATUS_WT_UNREADABLE};
git_repository *repo = cl_git_sandbox_init("empty_standard_repo");
@@ -953,10 +953,9 @@ void test_status_worktree__nopermissions(void)
counts.expected_entry_count = 1;
counts.expected_paths = expected_paths;
counts.expected_statuses = expected_statuses;
- counts.debug = 1;
opts.show = GIT_STATUS_SHOW_WORKDIR_ONLY;
- opts.flags = GIT_STATUS_OPT_DEFAULTS | GIT_DIFF_INCLUDE_UNREADABLE;
+ opts.flags = GIT_STATUS_OPT_DEFAULTS | GIT_STATUS_OPT_INCLUDE_UNREADABLE;
cl_git_pass(
git_status_foreach_ext(repo, &opts, cb_status__normal, &counts) );