Просмотр исходного кода

Merge branch 'bugfix/freertos_ut_suspend_v3.3' into 'release/v3.3'

freertos: Increases delta for UT - Test suspend-resume CPU. The number of... (v3.3)

See merge request espressif/esp-idf!14634
Zim Kalinowski 4 лет назад
Родитель
Сommit
c406655e47
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      components/freertos/test/test_task_suspend_resume.c

+ 2 - 2
components/freertos/test/test_task_suspend_resume.c

@@ -306,8 +306,8 @@ static void test_scheduler_suspend2(int cpu)
 
     printf("count_tick[cpu0] = %d, count_tick[cpu1] = %d\n", count_tick[0], count_tick[1]);
 
-    TEST_ASSERT_INT_WITHIN(1, waiting_ms * 2, count_tick[0]);
-    TEST_ASSERT_INT_WITHIN(1, waiting_ms * 2, count_tick[1]);
+    TEST_ASSERT_INT_WITHIN(portTICK_PERIOD_MS * 2, waiting_ms * 2, count_tick[0]);
+    TEST_ASSERT_INT_WITHIN(portTICK_PERIOD_MS * 2, waiting_ms * 2, count_tick[1]);
     printf("\n");
 }