test: Fix some unused identifier warnings

This commit is contained in:
Anton Maklakov
2018-12-05 20:22:25 +08:00
parent 0652a4b714
commit 81bf07ed4d
6 changed files with 13 additions and 24 deletions
+3
View File
@@ -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]")
+3 -1
View File
@@ -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() );