Skip to content

Commit

Permalink
tests: drivers: uart: uart_async_api: disable userspace permissions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
djiatsaf-st authored and henrikbrixandersen committed Jan 6, 2025
1 parent 57b3eb6 commit 921e281
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions tests/drivers/uart/uart_async_api/stm32_nocache_mem.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_TEST_USERSPACE=n
CONFIG_DCACHE=y
CONFIG_NOCACHE_MEMORY=y
8 changes: 4 additions & 4 deletions tests/drivers/uart/uart_async_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 921e281

Please sign in to comment.