mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-04 20:05:25 +02:00
test: Fix some unused identifier warnings
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
#include "unity.h"
|
||||
#include "esp_log.h"
|
||||
#include "driver/spi_common.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
static const char TAG[] = "test_psram";
|
||||
|
||||
#ifdef CONFIG_SPIRAM_SUPPORT
|
||||
static void test_psram_content()
|
||||
{
|
||||
const int test_size = 2048;
|
||||
@@ -32,6 +34,7 @@ static void test_psram_content()
|
||||
|
||||
free(test_area);
|
||||
}
|
||||
#endif
|
||||
|
||||
// NOTE: this unit test rely on the config that PSRAM of 8MB is used only when CONFIG_SPIRAM_BNKSWITCH_ENABLE is set
|
||||
TEST_CASE("can use spi when not being used by psram", "[psram_4m]")
|
||||
|
||||
@@ -17,13 +17,14 @@
|
||||
#include "rom/rtc.h"
|
||||
#include "esp_newlib.h"
|
||||
#include "test_utils.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#define ESP_EXT0_WAKEUP_LEVEL_LOW 0
|
||||
#define ESP_EXT0_WAKEUP_LEVEL_HIGH 1
|
||||
|
||||
static struct timeval tv_start, tv_stop;
|
||||
|
||||
|
||||
#ifndef CONFIG_FREERTOS_UNICORE
|
||||
static void deep_sleep_task(void *arg)
|
||||
{
|
||||
esp_deep_sleep_start();
|
||||
@@ -40,6 +41,7 @@ static void do_deep_sleep_from_app_cpu()
|
||||
;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_CASE("wake up from deep sleep using timer", "[deepsleep][reset=DEEPSLEEP_RESET]")
|
||||
{
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_wifi_internal.h"
|
||||
|
||||
static const char* TAG = "test_wifi_lib_git_commit_id";
|
||||
|
||||
TEST_CASE("wifi lib git commit id","[wifi]")
|
||||
{
|
||||
TEST_ESP_OK( esp_wifi_internal_git_commit_id_check() );
|
||||
|
||||
Reference in New Issue
Block a user