-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add a unit test for tasks.c #867
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This test simulates the scenario when a task with priority higher than the currently executing task is unblocked as a result of the xTaskIncrementTick call. This is needed to fix the coverage drop in PR FreeRTOS/FreeRTOS-Kernel#568. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
AniruddhaKanhere
previously approved these changes
Nov 3, 2022
amazonKamath
previously approved these changes
Nov 3, 2022
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
25ff773
shubnil
previously approved these changes
Nov 3, 2022
moninom1
reviewed
Nov 3, 2022
Member
moninom1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add comment for test_xTaskIncrementTick_success_unblock_tasks as well for covering all 3 cases.
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
moninom1
approved these changes
Nov 3, 2022
AniruddhaKanhere
approved these changes
Nov 3, 2022
aggarg
added a commit
to aggarg/FreeRTOS
that referenced
this pull request
Dec 9, 2023
FreeRTOS/FreeRTOS-Kernel#867 Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
every-breaking-wave
pushed a commit
to every-breaking-wave/FreeRTOS
that referenced
this pull request
Nov 15, 2024
This commit adds a portTASK_SWITCH_HOOK() macro which allows ports to inject behavior immediately after a context switch. For example, this macro could be used by ports that need to set an end of stack watchpoint after a context swtich. Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com> Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Tony Josi <tonyjosi@amazon.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Zangetsu112
pushed a commit
to Zangetsu112/FreeRTOS-evpp
that referenced
this pull request
Aug 18, 2025
* Add a unit test for tasks.c This test simulates the scenario when a task with priority higher than the currently executing task is unblocked as a result of the xTaskIncrementTick call. This is needed to fix the coverage drop in PR FreeRTOS/FreeRTOS-Kernel#568. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Add description for the test Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Add doc for another test Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This test simulates the scenario when a task with priority higher than the currently executing task is unblocked as a result of the xTaskIncrementTick call.
This is needed to fix the coverage drop in PR FreeRTOS/FreeRTOS-Kernel#568.
Test Steps
Results:
Related Issue
FreeRTOS/FreeRTOS-Kernel#568
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.