summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/diff/diff_helpers.c10
-rw-r--r--tests-clar/status/status_data.h2
-rw-r--r--tests-clar/status/worktree.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c
index 67a4f1c51..d8eca7d9b 100644
--- a/tests-clar/diff/diff_helpers.c
+++ b/tests-clar/diff/diff_helpers.c
@@ -30,11 +30,11 @@ int diff_file_fn(
(void)progress;
e->files++;
switch (delta->status) {
- case GIT_STATUS_ADDED: e->file_adds++; break;
- case GIT_STATUS_DELETED: e->file_dels++; break;
- case GIT_STATUS_MODIFIED: e->file_mods++; break;
- case GIT_STATUS_IGNORED: e->file_ignored++; break;
- case GIT_STATUS_UNTRACKED: e->file_untracked++; break;
+ case GIT_DELTA_ADDED: e->file_adds++; break;
+ case GIT_DELTA_DELETED: e->file_dels++; break;
+ case GIT_DELTA_MODIFIED: e->file_mods++; break;
+ case GIT_DELTA_IGNORED: e->file_ignored++; break;
+ case GIT_DELTA_UNTRACKED: e->file_untracked++; break;
default: break;
}
return 0;
diff --git a/tests-clar/status/status_data.h b/tests-clar/status/status_data.h
index 719d841f6..1a68648f4 100644
--- a/tests-clar/status/status_data.h
+++ b/tests-clar/status/status_data.h
@@ -29,7 +29,7 @@ static const char *entry_paths0[] = {
static const unsigned int entry_statuses0[] = {
GIT_STATUS_WT_DELETED,
- GIT_STATUS_WT_IGNORED,
+ GIT_STATUS_IGNORED,
GIT_STATUS_WT_MODIFIED,
GIT_STATUS_WT_NEW,
GIT_STATUS_INDEX_MODIFIED,
diff --git a/tests-clar/status/worktree.c b/tests-clar/status/worktree.c
index f654b8a94..132ec1fc1 100644
--- a/tests-clar/status/worktree.c
+++ b/tests-clar/status/worktree.c
@@ -120,7 +120,7 @@ void test_status_worktree__ignores(void)
cl_git_pass(
git_status_should_ignore(repo, entry_paths0[i], &ignored)
);
- cl_assert(ignored == (entry_statuses0[i] == GIT_STATUS_WT_IGNORED));
+ cl_assert(ignored == (entry_statuses0[i] == GIT_STATUS_IGNORED));
}
cl_git_pass(