mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
freertos: extend snapshot test to check return status of vTaskGetSnapshot
This commit is contained in:
parent
2a30a1012d
commit
318f723042
@ -138,7 +138,8 @@ TEST_CASE("Task snapshot: Iterate", "[freertos]")
|
||||
TaskHandle_t cur_task_handle = pxTaskGetNext(NULL);
|
||||
while (cur_task_handle != NULL) {
|
||||
// Get the task's snapshot
|
||||
vTaskGetSnapshot(cur_task_handle, &task_snapshots[num_snapshots]);
|
||||
BaseType_t Result = vTaskGetSnapshot(cur_task_handle, &task_snapshots[num_snapshots]);
|
||||
TEST_ASSERT_EQUAL(pdTRUE, Result);
|
||||
num_snapshots++;
|
||||
cur_task_handle = pxTaskGetNext(cur_task_handle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user