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

Enable layout tests for generated bindings #168

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

ian-h-chamberlain
Copy link
Member

Closes #167

Bindgen can help us catch ABI issues sometimes! Let's use it, and see if it catches any issues.

@ian-h-chamberlain ian-h-chamberlain marked this pull request as ready for review February 26, 2024 01:05
@ian-h-chamberlain ian-h-chamberlain requested a review from a team as a code owner February 26, 2024 01:05
@ian-h-chamberlain
Copy link
Member Author

Well, I guess this didn't fix the issue mentioned in #162, and didn't flag any other issue, so I'm not sure how helpful it will be, but we may as well enable it since it works with very little effort.

@FenrirWolf
Copy link
Member

Yeah, bindgen can't detect enum-related layout issues if it legit thinks every enum will be 4 bytes wide. But we might as well have these tests too.

@FenrirWolf FenrirWolf self-requested a review February 26, 2024 05:53
@ian-h-chamberlain ian-h-chamberlain merged commit 519820b into master Mar 14, 2024
4 checks passed
@ian-h-chamberlain ian-h-chamberlain deleted the testing/add-layout-tests branch March 14, 2024 17:41
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.

See if we can use bindgen layout tests
2 participants