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

Add C++ tests for cross-platform error code checks. #10

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

jemc
Copy link
Contributor

@jemc jemc commented Oct 20, 2023

This adds a new Savi program to the repo, which can print a C++ program that checks the mapping of error codes by names, comparing what we have implemented to what the C++ compiler resolves.

This will let us quickly find out if any of the error codes we have defined are at variance with what a C/C++ program would see.

Note that this PR actually includes a few platform-specific error code fixes, for issues noticed by this new check, so it's already paying off.

@jemc jemc self-assigned this Oct 20, 2023
@jemc jemc force-pushed the add/cross-platform branch 4 times, most recently from 9a3aaf0 to 03137e2 Compare October 20, 2023 21:55
This adds a new Savi program to the repo, which can
print a C++ program that checks the mapping of error codes by names,
comparing what we have implemented to what the C++ compiler resolves.

This will let us quickly find out if any of the error codes
we have defined are at variance with what a C/C++ program would see.
@jemc jemc merged commit f43cf7c into main Oct 20, 2023
8 checks passed
@jemc jemc deleted the add/cross-platform branch October 20, 2023 23:27
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