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

test/unit: fix tpm2_header test on BE machines #3323

Merged

Conversation

williamcroberts
Copy link
Member

Fixes the test on BE machines by making the pointers const and thus not needing to check if underlying function is modifying things by checking the expected LE output of casting a BE scalar. Make it all const interface and let the compiler enforce that idiom.

Fixes the test on BE machines by making the pointers const and thus not
needing to check if underlying function is modifying things by checking
the expected LE output of casting a BE scalar. Make it all const
interface and let the compiler enforce that idiom.

Signed-off-by: Bill Roberts <[email protected]>
@williamcroberts
Copy link
Member Author

@aplanas can you check this commit? Partial fix for #3060

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e988a22) 76.53% compared to head (8c52ff1) 76.53%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3323   +/-   ##
=======================================
  Coverage   76.53%   76.53%           
=======================================
  Files         173      173           
  Lines       23663    23663           
=======================================
  Hits        18110    18110           
  Misses       5553     5553           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@williamcroberts williamcroberts added this to the next milestone Dec 20, 2023
Copy link
Contributor

@aplanas aplanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting fix

@williamcroberts williamcroberts merged commit b83de07 into tpm2-software:master Dec 24, 2023
19 checks passed
@williamcroberts williamcroberts deleted the fix-header-test-for-be branch December 24, 2023 20:00
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.

2 participants