Unlike CONFIG_HW_STACK_PROTECTION, which greatly helps expose stack overflows in test code, activating userspace without putting threads in user mode is of very limited value. Now CONFIG_TEST_USERSPACE is off by default. Any test which puts threads in user mode will need to set CONFIG_TEST_USERSPACE. This should greatly increase sanitycheck build times as there is non-trivial build time overhead to enabling this feature. This also allows some tests which failed the build on RAM-constrained platforms to compile properly. tests/drivers/build_all is a special case; it doesn't put threads in user mode, but we want to ensure all the syscall handlers compile properly. Fixes: #15103 (and probably others) Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
22 lines
540 B
Plaintext
22 lines
540 B
Plaintext
CONFIG_ZTEST=y
|
|
CONFIG_ZTEST_STACKSIZE=2048
|
|
CONFIG_MAIN_STACK_SIZE=1024
|
|
CONFIG_HEAP_MEM_POOL_SIZE=1024
|
|
|
|
CONFIG_FLASH=y
|
|
CONFIG_SOC_FLASH_NRF_RADIO_SYNC=y
|
|
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
|
|
|
CONFIG_FILE_SYSTEM=y
|
|
CONFIG_LOG=y
|
|
CONFIG_FILE_SYSTEM_NFFS=y
|
|
CONFIG_FS_NFFS_FLASH_DEV_NAME="NRF_FLASH_DRV_NAME"
|
|
CONFIG_FS_NFFS_NUM_FILES=4
|
|
CONFIG_FS_NFFS_NUM_DIRS=4
|
|
CONFIG_FS_NFFS_NUM_INODES=1024
|
|
CONFIG_FS_NFFS_NUM_BLOCKS=1024
|
|
CONFIG_FS_NFFS_NUM_CACHE_INODES=1
|
|
CONFIG_FS_NFFS_NUM_CACHE_BLOCKS=1
|
|
CONFIG_FILE_SYSTEM_NFFS=y
|
|
CONFIG_NFFS_FILESYSTEM_MAX_AREAS=12
|