freertos: extend snapshot test to check return status of vTaskGetSnapshot

This commit is contained in:
Mahavir Jain 2022-05-10 14:19:17 +05:30
parent 2a30a1012d
commit 318f723042
No known key found for this signature in database
GPG Key ID: 99324EF4A00734E0

View File

@ -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);
}