Merge branch 'bugfix/fix_mbedtls_unit_test_compiling_error' into 'master'

fix(mbedtls): fix mbedtls unit test compiling error

See merge request sdk/ESP8266_RTOS_SDK!1310
This commit is contained in:
Dong Heng
2020-02-25 14:43:27 +08:00
3 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,12 @@ config DISABLE_FREERTOS
Enable this option, FreeRTOS will not be compiled and linked, and the user
can user other OS platform.
config FREERTOS_UNICORE
bool
default y
help
Only for code compatible.
config FREERTOS_ENABLE_REENT
bool "Enable \"reent\" function"
default n

View File

@ -6,12 +6,13 @@
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "soc/uart_periph.h"
#include "test_apb_dport_access.h"
#include "test_utils.h"
#ifndef CONFIG_FREERTOS_UNICORE
#include "soc/uart_periph.h"
static void apb_access_loop_task(void *ignore);
static volatile bool apb_access_corrupt;

View File

@ -58,7 +58,7 @@ static void test_bignum_mult(const char *a_str, const char *b_str, const char *e
mbedtls_mpi_set_bit(&M, i, 1);
}
TEST_ASSERT_FALSE(esp_mpi_mul_mpi_mod(&X, &A, &B, &M));
TEST_ASSERT_FALSE(mbedtls_mpi_exp_mod(&X, &A, &B, &M, NULL));
mbedtls_mpi_write_string(&X, 16, x_buf, sizeof(x_buf)-1, &x_buf_len);
TEST_ASSERT_EQUAL_STRING_MESSAGE(e_str, x_buf, "esp_mpi_mul_mpi_mod result wrong");