forked from espressif/esp-idf
unit-test-app: reduce startup delay, clean up
This commit is contained in:
@@ -39,7 +39,7 @@ struct test_desc_t
|
|||||||
|
|
||||||
void unity_testcase_register(struct test_desc_t* desc);
|
void unity_testcase_register(struct test_desc_t* desc);
|
||||||
|
|
||||||
void unity_run_menu();
|
void unity_run_menu() __attribute__((noreturn));
|
||||||
|
|
||||||
void unity_run_tests_with_filter(const char* filter);
|
void unity_run_tests_with_filter(const char* filter);
|
||||||
|
|
||||||
|
@@ -6,9 +6,8 @@
|
|||||||
|
|
||||||
void unityTask(void *pvParameters)
|
void unityTask(void *pvParameters)
|
||||||
{
|
{
|
||||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
vTaskDelay(30); /* Delay a bit to let the main task be deleted */
|
||||||
unity_run_menu();
|
unity_run_menu(); /* Doesn't return */
|
||||||
while(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void app_main()
|
void app_main()
|
||||||
|
Reference in New Issue
Block a user