Ver Fonte

test: fix several test build error

morris há 5 anos atrás
pai
commit
b7ecccd901

+ 2 - 0
components/driver/test/adc_dma_test/test_esp32s2.c

@@ -39,6 +39,8 @@
 #if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2
 
 #include "soc/system_reg.h"
+#include "soc/spi_reg.h"
+#include "soc/soc.h"
 #include "soc/lldesc.h"
 #include "test/test_adc_dac_dma.h"
 

+ 2 - 0
components/driver/test/dac_dma_test/test_esp32s2.c

@@ -32,9 +32,11 @@
 #include "esp_log.h"
 #include "nvs_flash.h"
 #include "test_utils.h"
+#include "soc/soc.h"
 #include "soc/spi_reg.h"
 #include "soc/adc_periph.h"
 #include "soc/dac_periph.h"
+#include "soc/spi_periph.h"
 #include "test/test_common_adc.h"
 
 #if !DISABLED_FOR_TARGETS(ESP8266, ESP32, ESP32S3) // This testcase for ESP32S2

+ 1 - 0
components/esp_common/include/esp_task.h

@@ -27,6 +27,7 @@
 #define _ESP_TASK_H_
 
 #include "sdkconfig.h"
+#include "freertos/FreeRTOS.h"
 #include "freertos/FreeRTOSConfig.h"
 
 #define ESP_TASK_PRIO_MAX (configMAX_PRIORITIES)

+ 1 - 1
components/mdns/test_afl_fuzz_host/Makefile

@@ -67,7 +67,7 @@ all: $(TEST_NAME)
 
 mdns.o: ../mdns.c
 	@echo "[CC] $<"
-	@$(CC) $(CFLAGS) --include mdns_mock.h $(MDNS_C_DEPENDENCY_INJECTION) -c $< -o $@
+	@$(CC) $(CFLAGS) -include mdns_mock.h $(MDNS_C_DEPENDENCY_INJECTION) -c $< -o $@
 
 $(TEST_NAME): $(OBJECTS)
 	@echo "[LD] $@"