From 921e281ef0207fe72d2b7a669c2606b5d1d2bf88 Mon Sep 17 00:00:00 2001 From: Fabrice DJIATSA Date: Tue, 3 Dec 2024 10:57:47 +0100 Subject: [PATCH] tests: drivers: uart: uart_async_api: disable userspace permissions Test cases on F746ZG work with USERSPACE config not enabled. PR #80944 forces the use of the TEST_ENABLE_USERSPACE config with the "select" statement instead of "imply," which is more restrictive for test case dependencies.This leads to the error "Memory region 0x2004d180 (size 8) write access denied" on boards. By setting CONFIG_TEST_USERSPACE=n, the TEST_ENABLE_USERSPACE config will not be enabled. Signed-off-by: Fabrice DJIATSA --- tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf | 3 +++ tests/drivers/uart/uart_async_api/testcase.yaml | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf diff --git a/tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf b/tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf new file mode 100644 index 00000000000..f91a7822e5e --- /dev/null +++ b/tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf @@ -0,0 +1,3 @@ +CONFIG_TEST_USERSPACE=n +CONFIG_DCACHE=y +CONFIG_NOCACHE_MEMORY=y diff --git a/tests/drivers/uart/uart_async_api/testcase.yaml b/tests/drivers/uart/uart_async_api/testcase.yaml index ef1f48e4112..e0f14c3a492 100644 --- a/tests/drivers/uart/uart_async_api/testcase.yaml +++ b/tests/drivers/uart/uart_async_api/testcase.yaml @@ -99,10 +99,8 @@ tests: platform_allow: - nucleo_f746zg - nucleo_h723zg - extra_configs: - - CONFIG_DCACHE=y - - CONFIG_NOCACHE_MEMORY=y - - CONFIG_USERSPACE=n + extra_args: + - EXTRA_CONF_FILE=stm32_nocache_mem.conf drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg: # nocache memory region is defined in DT harness: ztest @@ -114,6 +112,8 @@ tests: extra_args: - DTC_OVERLAY_FILE="boards/nucleo_f746zg.overlay;boards/nucleo_f746zg_nocachemem.overlay" - EXTRA_CONF_FILE=stm32_nocache_mem_dt.conf + extra_configs: + - CONFIG_TEST_USERSPACE=n drivers.uart.async_api.nocache_mem_dt.nucleo_h723zg: # nocache memory region is defined in DT harness: ztest