Skip to content

Commit

Permalink
Backport t18 fixes to Clay
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Sep 19, 2011
1 parent 4d3c409 commit 2014021
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests-clay/status/worktree.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2014021

Please sign in to comment.