Skip to content

Commit cb524ac

Browse files
committed
tests: drivers: uart: uart_async_api: disable userspace permissions
Test cases on F746ZG work with USERSPACE config not enabled. PR zephyrproject-rtos#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 <[email protected]>
1 parent 2f583a8 commit cb524ac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_TEST_USERSPACE=n
2+
CONFIG_DCACHE=y
3+
CONFIG_NOCACHE_MEMORY=y

tests/drivers/uart/uart_async_api/testcase.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@ tests:
9898
platform_allow:
9999
- nucleo_f746zg
100100
- nucleo_h723zg
101-
extra_configs:
102-
- CONFIG_DCACHE=y
103-
- CONFIG_NOCACHE_MEMORY=y
104-
- CONFIG_USERSPACE=n
101+
extra_args:
102+
- EXTRA_CONF_FILE=stm32_nocache_mem.conf
105103
drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg:
106104
# nocache memory region is defined in DT
107105
harness: ztest
@@ -113,6 +111,8 @@ tests:
113111
extra_args:
114112
- DTC_OVERLAY_FILE="boards/nucleo_f746zg.overlay;boards/nucleo_f746zg_nocachemem.overlay"
115113
- EXTRA_CONF_FILE=stm32_nocache_mem_dt.conf
114+
extra_configs:
115+
- CONFIG_TEST_USERSPACE=n
116116
drivers.uart.async_api.nocache_mem_dt.nucleo_h723zg:
117117
# nocache memory region is defined in DT
118118
harness: ztest

0 commit comments

Comments
 (0)