Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adam-scislowicz
Copy link
Contributor

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:

  • 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

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.

chinglee-iot and others added 30 commits May 26, 2022 15:44
* 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
rawalexe and others added 26 commits February 2, 2023 22:34
* 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.
@adam-scislowicz adam-scislowicz requested a review from a team as a code owner March 3, 2023 22:32
moninom1 added a commit to moninom1/FreeRTOS that referenced this pull request Jun 30, 2023
every-breaking-wave pushed a commit to every-breaking-wave/FreeRTOS that referenced this pull request Nov 15, 2024
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.

5 participants