forked from espressif/esp-idf
Merge branch 'refactor/move_shared_stack_test_to_esp_system' into 'master'
refactor(esp_system): moved shared stack tests from newlib to esp_system See merge request espressif/esp-idf!27790
This commit is contained in:
@@ -10,6 +10,7 @@ set(SRC "test_app_main.c"
|
|||||||
"test_delay.c"
|
"test_delay.c"
|
||||||
"test_ipc.c"
|
"test_ipc.c"
|
||||||
"test_reset_reason.c"
|
"test_reset_reason.c"
|
||||||
|
"test_shared_stack_printf.c"
|
||||||
"test_sleep.c"
|
"test_sleep.c"
|
||||||
"test_stack_check.c"
|
"test_stack_check.c"
|
||||||
"test_system_time.c"
|
"test_system_time.c"
|
||||||
|
@@ -13,6 +13,10 @@
|
|||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
#include "esp_expression_with_stack.h"
|
#include "esp_expression_with_stack.h"
|
||||||
|
|
||||||
|
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32P4) // TODO IDF-8832: RISC-V FPU does not work on shared stack,
|
||||||
|
// esp_execute_shared_stack_function might be deprecated because of
|
||||||
|
// the FPU issue and all the other issues with it.
|
||||||
|
|
||||||
#define SHARED_STACK_SIZE 8192
|
#define SHARED_STACK_SIZE 8192
|
||||||
|
|
||||||
static StackType_t *shared_stack_sp = NULL;
|
static StackType_t *shared_stack_sp = NULL;
|
||||||
@@ -40,7 +44,7 @@ void another_external_stack_function(void)
|
|||||||
shared_stack_sp = (StackType_t *)esp_cpu_get_sp();
|
shared_stack_sp = (StackType_t *)esp_cpu_get_sp();
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("test printf using shared buffer stack", "[newlib]")
|
TEST_CASE("test printf using shared buffer stack", "[shared_stack]")
|
||||||
{
|
{
|
||||||
StackType_t *shared_stack = malloc(SHARED_STACK_SIZE);
|
StackType_t *shared_stack = malloc(SHARED_STACK_SIZE);
|
||||||
|
|
||||||
@@ -72,3 +76,4 @@ TEST_CASE("test printf using shared buffer stack", "[newlib]")
|
|||||||
vSemaphoreDelete(printf_lock);
|
vSemaphoreDelete(printf_lock);
|
||||||
free(shared_stack);
|
free(shared_stack);
|
||||||
}
|
}
|
||||||
|
#endif // !TEMPORARY_DISABLED_FOR_TARGETS(ESP32P4)
|
@@ -6,7 +6,6 @@ idf_component_register(SRCS
|
|||||||
"test_misc.c"
|
"test_misc.c"
|
||||||
"test_newlib.c"
|
"test_newlib.c"
|
||||||
"test_setjmp.c"
|
"test_setjmp.c"
|
||||||
"test_shared_stack_printf.c"
|
|
||||||
"test_stdatomic.c"
|
"test_stdatomic.c"
|
||||||
"test_time.c"
|
"test_time.c"
|
||||||
PRIV_REQUIRES unity vfs cmock driver esp_timer spi_flash test_utils pthread esp_psram
|
PRIV_REQUIRES unity vfs cmock driver esp_timer spi_flash test_utils pthread esp_psram
|
||||||
|
Reference in New Issue
Block a user