Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git_status_foreach tests #409

Merged
merged 2 commits into from Sep 19, 2011
Merged

Fix git_status_foreach tests #409

merged 2 commits into from Sep 19, 2011

Conversation

nulltoken
Copy link
Member

off-by-one error

Provided the tests fail (which they should not) and the callback is invoked too many times, this prevents the tests from segfaulting.

Forgotten coverage

Also added some asserts to ensure git_status_foreach() returns GIT_SUCCESS...

Provided the tests fail (which they should not) and the callback is invoked too many times, this prevents the tests from segfaulting.
@vmg
Copy link
Member

vmg commented Sep 19, 2011

❤️

vmg added a commit that referenced this pull request Sep 19, 2011
@vmg vmg merged commit 4d3c409 into libgit2:development Sep 19, 2011
phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants