Commit 2014021b by Vicent Marti

Backport t18 fixes to Clay

parent 4d3c409c
......@@ -17,7 +17,7 @@ cb_status__normal( const char *path, unsigned int status_flags, void *payload)
{
struct status_entry_counts *counts = payload;
if (counts->entry_count > counts->expected_entry_count) {
if (counts->entry_count >= counts->expected_entry_count) {
counts->wrong_status_flags_count++;
goto exit;
}
......@@ -106,7 +106,9 @@ void test_status_worktree__whole_repository(void)
counts.expected_paths = entry_paths0;
counts.expected_statuses = entry_statuses0;
git_status_foreach(_repository, cb_status__normal, &counts);
cl_git_pass(
git_status_foreach(_repository, cb_status__normal, &counts)
);
cl_assert(counts.entry_count == counts.expected_entry_count);
cl_assert(counts.wrong_status_flags_count == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment