From 0f665dfb0d7096082801a5ceaa6cec28de494892 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 17 Jul 2018 15:12:44 +1000 Subject: [PATCH] esp32: Fix race in "TLS Test" where s_task can go out of scope before cleanup finishes Probable cause for CI failures of "LoadStoreError" after this task finishes running. --- components/freertos/test/test_thread_local.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/freertos/test/test_thread_local.c b/components/freertos/test/test_thread_local.c index d5f782b43c..912edf9664 100644 --- a/components/freertos/test/test_thread_local.c +++ b/components/freertos/test/test_thread_local.c @@ -102,4 +102,6 @@ TEST_CASE("TLS test", "[freertos]") while (running[0] || running[1]) { vTaskDelay(10); } + vTaskDelay(10); /* Make sure idle task can clean up s_task, before it goes out of scope */ } +