Ver Fonte

test: ut only test app core reset on dual core

He Yin Ling há 8 anos atrás
pai
commit
be405d69d8
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      components/esp32/test/test_restart.c

+ 2 - 1
components/esp32/test/test_restart.c

@@ -14,6 +14,7 @@ static void restart_task(void *arg)
     esp_restart();
     esp_restart();
 }
 }
 
 
+#ifndef CONFIG_FREERTOS_UNICORE
 TEST_CASE("restart from APP CPU", "[restart][reset=SW_CPU_RESET]")
 TEST_CASE("restart from APP CPU", "[restart][reset=SW_CPU_RESET]")
 {
 {
     xTaskCreatePinnedToCore(&restart_task, "restart", 2048, NULL, 5, NULL, 1);
     xTaskCreatePinnedToCore(&restart_task, "restart", 2048, NULL, 5, NULL, 1);
@@ -21,4 +22,4 @@ TEST_CASE("restart from APP CPU", "[restart][reset=SW_CPU_RESET]")
         ;
         ;
     }
     }
 }
 }
-
+#endif