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

Functional test add priority inherit test cases #57

Open
wants to merge 9 commits into
base: smp-dev-functional-test
Choose a base branch
from

Conversation

chinglee-iot
Copy link
Owner

@chinglee-iot chinglee-iot commented Apr 26, 2023

Add priority inherit and disinherit test cases to verfiy this kernel PR

Description

xTaskPriorityInherit, xTaskPriorityDisinherit and vTaskPriorityDisinheritAfterTimeout need to yield the inherited/disinherited task.

Adding the following test cases to verify the result:

  • test_task_priority_inherit_disinherit
  • test_task_priority_inherit_disinherit_timeout
Filename -- -- Line Coverage -- Functions -- Branches --
event_groups.c     95.7 % 176 / 184 100.0 % 16 / 16 72.0 % 72 / 100
list.c     100.0 % 40 / 40 100.0 % 5 / 5 100.0 % 6 / 6
queue.c     95.4 % 726 / 761 100.0 % 47 / 47 97.0 % 456 / 470
stream_buffer.c     94.2 % 309 / 328 100.0 % 26 / 26 95.5 % 189 / 198
tasks.c     99.7 % 1463 / 1468 100.0 % 96 / 96 96.4 % 1008 / 1046
timers.c     100.0 % 243 / 243 100.0 % 30 / 30 96.2 % 76 / 79

Test Steps

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.

Related Issue

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant