Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

voidcheck string pointers and reenable attr test#266

Merged
maxkorp merged 1 commit intomasternodegit/nodegit:masterfrom
fix-attr-testnodegit/nodegit:fix-attr-testCopy head branch name to clipboard
Nov 11, 2014
Merged

voidcheck string pointers and reenable attr test#266
maxkorp merged 1 commit intomasternodegit/nodegit:masterfrom
fix-attr-testnodegit/nodegit:fix-attr-testCopy head branch name to clipboard

Conversation

@maxkorp
Copy link
Collaborator

@maxkorp maxkorp commented Nov 11, 2014

The attr test was failing (and being skipped) because of a segfault. Some libgit2 functions that output to char** just don't even allocate the inner string if they have no output, so we need to voidcheck the inner pointer. Combined with a tweak to make git_attr_get async and to make the templates recognize its return, the test passes.

maxkorp added a commit that referenced this pull request Nov 11, 2014
voidcheck string pointers and reenable attr test
@maxkorp maxkorp merged commit ec0811c into master Nov 11, 2014
@maxkorp maxkorp deleted the fix-attr-test branch November 11, 2014 17:39
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.