-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Coverage testing for xTaskPriorityDisinherit, and vTaskPriorityDisinheritAftertimeout #945
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
Closed
adam-scislowicz
wants to merge
67
commits into
FreeRTOS:main
from
chinglee-iot:adamds/smp-unit-test-covg-group3
Closed
Coverage testing for xTaskPriorityDisinherit, and vTaskPriorityDisinheritAftertimeout #945
adam-scislowicz
wants to merge
67
commits into
FreeRTOS:main
from
chinglee-iot:adamds/smp-unit-test-covg-group3
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
* Update submodule pointer to smp-dev-complete-merge-main-smp
* vTaskYieldWithinAPI * xYieldPendings * xIdleTaskHandles
Update CMock framework and integrate with SMP kernel changes Add a new SMP CMock test target Add SMP tests for the single priority no time slice build configuration
* Core yield is check in portRELEASE_TASK_LOCK instead vYieldCores call * Update some test cases expectation due to the yield order change
This commit adds new CMock functional tests to verify the SMP feature of the kernel when configured for multiple priorities no time slice and single priority timeslice enabled.
* test_task_yield_run_wait_longest * test_task_yield_run_equal_priority
* Rename to test_task_yield_run_equal_priority_new_task
* Adding a helper function to call xTaskIncrementTick in critical section * Make use of the return value of xTaskIncrementTick to yield the core calling this function * Update test cases correspondingly
* Adding a helper function to call xTaskIncrementTick in critical section * Make use of the return value of xTaskIncrementTick to yield the core calling this function * Update test cases correspondingly
Addresses PR concerns
…entTick-test-cases
* Remove multiple_priorities_no_timeslice_covg, single_priority_no_timeslice_covg and single_priority_timeslice_thread test folders and move the covg utest.c to the folder with same FreeRTOSConfig.h * Add configUSE_TICKLESS_IDLE config in single_priority_no_timeslice test group * Add configUSE_MINIMAL_IDLE_HOOK config in single_priority_timeslice test group
* Remove multiple_priorities_no_timeslice_covg, single_priority_no_timeslice_covg and single_priority_timeslice_thread test folders and move the covg utest.c to the folder with same FreeRTOSConfig.h * Add configUSE_TICKLESS_IDLE config in single_priority_no_timeslice test group * Add configUSE_MINIMAL_IDLE_HOOK config in single_priority_timeslice test group
* Adding coverage test for xTaskResumeFromISR * Use mock and variables for coverage test
…out for now as the private functions are currently unlinkable.
Add coverage for prvAddNewTaskToReadyList, vTaskCoreAffinitySet.
moninom1
added a commit
to moninom1/FreeRTOS
that referenced
this pull request
Jun 30, 2023
…rsions (FreeRTOS#929) (FreeRTOS#945) Authored-by: Xiaodong Li <[email protected]> Co-authored-by: Xiaodong Li <[email protected]>
every-breaking-wave
pushed a commit
to every-breaking-wave/FreeRTOS
that referenced
this pull request
Nov 15, 2024
Co-authored-by: Rahul Kar <[email protected]>
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
Coverage tests for xTaskPriorityDisinherit, and vTaskPriorityDisinheritAftertimeout
Test Steps
cd FreeRTOS/Test/CMock/smp
rm -rf ../build/generated
make lcovhtml
view the resulting generated file with a web browser: FreeRTOS/Test/CMock/build/generated/smp/coverage/Source/tasks.c.gcov.html
Checklist:
Related Issue
TS-24213, TS-24214
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.