Skip to content

Commit

Permalink
Merge branch 'bugfix/freertos_vTaskSuspendAll_test_flakiness' into 'm…
Browse files Browse the repository at this point in the history
…aster'

FreeRTOS: Fix vTaskSuspendAll unit test falkiness

See merge request espressif/esp-idf!20531
  • Loading branch information
Dazza0 committed Oct 11, 2022
2 parents a8eacd6 + 7b1c0ef commit 0cf1477
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ TEST_CASE("Test vTaskSuspendAll() and xTaskResumeAll() multicore", "[freertos]")
}

vSemaphoreDelete(done_sem);
// Add a short delay to allow the idle task to free any remaining task memory
vTaskDelay(10);
}
#endif // !CONFIG_FREERTOS_UNICORE

Expand Down Expand Up @@ -387,6 +389,8 @@ TEST_CASE("Test vTaskSuspendAll allows scheduling on other cores", "[freertos]")
}

vSemaphoreDelete(test_unblk_done_sem);
// Add a short delay to allow the idle task to free any remaining task memory
vTaskDelay(10);
}
#endif // !CONFIG_FREERTOS_UNICORE

Expand Down Expand Up @@ -504,5 +508,7 @@ TEST_CASE("Test xTaskResumeAll resumes pended tasks", "[freertos]")
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
vTaskDelete(susp_tsk_hdl);
}
// Add a short delay to allow the idle task to free any remaining task memory
vTaskDelay(10);
}
#endif // !CONFIG_FREERTOS_SMP

0 comments on commit 0cf1477

Please sign in to comment.