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 runtime parameter checks #758

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

kar-rahul-aws
Copy link
Member

Description

This commit adds runtime checks for function parameters to mpu_wrappers_v2 file. The same checks are performed
in the API implementation using asserts.

Test Steps

Ran the soak tests on STM32H7-NUCLEO board.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kar-rahul-aws and others added 3 commits August 17, 2023 17:29
This commit adds runtime checks for function parameters
to mpu_wrappers_v2 file. The same checks are performed
in the API implementation using asserts.

Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
@kar-rahul-aws kar-rahul-aws requested a review from a team as a code owner August 17, 2023 13:03
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.08% ⚠️

Comparison is base (0d87194) 94.43% compared to head (9a73bea) 94.36%.

Additional details and impacted files
@@               Coverage Diff                @@
##           release_10_6     #758      +/-   ##
================================================
- Coverage         94.43%   94.36%   -0.08%     
================================================
  Files                 6        6              
  Lines              2428     2430       +2     
  Branches            596      596              
================================================
  Hits               2293     2293              
- Misses               85       87       +2     
  Partials             50       50              
Flag Coverage Δ
unittests 94.36% <0.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
event_groups.c 82.23% <ø> (ø)
queue.c 93.85% <0.00%> (-0.25%) ⬇️
tasks.c 94.78% <ø> (ø)

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

@aggarg aggarg merged commit ace6b39 into FreeRTOS:release_10_6 Aug 17, 2023
8 of 10 checks passed
@aggarg aggarg deleted the parameter_checks branch August 17, 2023 13:23
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