mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 21:56:44 +00:00
Backport t18 fixes to Clay
This commit is contained in:
parent
4d3c409c19
commit
2014021b20
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user