FreeRTOS-Kernel/FreeRTOS/Test/CMock/tasks
Moral-Hao ae39f8e245
Fix one typical misusage of CMock. (#1112)
* Fix one typical misusage of CMock.

CMock has three policies when dealing with pointer:
1. compare_ptr : compare the pointer itself;
2. compare_data : compare the data which is pointed by pointer;
3. smart : compare the pointer itself, or compare the data;
By default, CMock use compare_data policy.

Most test cases in FreeRTOS need to compare the pointer itself,
and we haven't use CMock properly.
For example, one test case of vTaskResume is wrong, because current
CMock compares the data pointed by pointer, so the error didn't exposed.

There are so many misusage need to fix, it will take a lot of work.
I'm here to fix one typical misusage first.

* Try to fix formatting syntax.
2023-11-13 15:44:59 -08:00
..
tasks_freertos Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
FreeRTOSConfig_1.h Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
FreeRTOSConfig_2.h Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
FreeRTOSConfig_assert.h Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
global_vars.h Use CI-CD-Github-Actions for spelling and formatting, add in the bot formatting action, update the CI-CD workflow files. Fix incorrect spelling and formatting on files. (#1083) 2023-09-06 12:35:37 -07:00
list_macros.h Use CI-CD-Github-Actions for spelling and formatting, add in the bot formatting action, update the CI-CD workflow files. Fix incorrect spelling and formatting on files. (#1083) 2023-09-06 12:35:37 -07:00
Makefile Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
tasks.yml Fix one typical misusage of CMock. (#1112) 2023-11-13 15:44:59 -08:00
tasks_1_utest.c Fix one typical misusage of CMock. (#1112) 2023-11-13 15:44:59 -08:00
tasks_2_utest.c Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00
tasks_assert_utest.c Add unit test for FreeRTOS SMP (#1047) 2023-10-31 08:34:59 +08:00