Skip to content

Commit 921e281

Browse files
djiatsaf-sthenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent 57b3eb6 commit 921e281

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
@@ -99,10 +99,8 @@ tests:
9999
platform_allow:
100100
- nucleo_f746zg
101101
- nucleo_h723zg
102-
extra_configs:
103-
- CONFIG_DCACHE=y
104-
- CONFIG_NOCACHE_MEMORY=y
105-
- CONFIG_USERSPACE=n
102+
extra_args:
103+
- EXTRA_CONF_FILE=stm32_nocache_mem.conf
106104
drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg:
107105
# nocache memory region is defined in DT
108106
harness: ztest
@@ -114,6 +112,8 @@ tests:
114112
extra_args:
115113
- DTC_OVERLAY_FILE="boards/nucleo_f746zg.overlay;boards/nucleo_f746zg_nocachemem.overlay"
116114
- EXTRA_CONF_FILE=stm32_nocache_mem_dt.conf
115+
extra_configs:
116+
- CONFIG_TEST_USERSPACE=n
117117
drivers.uart.async_api.nocache_mem_dt.nucleo_h723zg:
118118
# nocache memory region is defined in DT
119119
harness: ztest

0 commit comments

Comments
 (0)