ostest: Enabled KASAN, UBSAN & assertions.

This commit is contained in:
Fotis Panagiotopoulos 2023-04-05 21:07:22 +03:00 committed by Xiang Xiao
parent fcd6ec7809
commit 1530e04f20
2 changed files with 8 additions and 0 deletions

View file

@ -14,10 +14,15 @@ CONFIG_BOARDCTL=y
CONFIG_BOARDCTL_POWEROFF=y
CONFIG_BOARD_LOOPSPERMSEC=100
CONFIG_CANCELLATION_POINTS=y
CONFIG_DEBUG_ASSERTIONS=y
CONFIG_DEBUG_FEATURES=y
CONFIG_DEBUG_SYMBOLS=y
CONFIG_FS_NAMED_SEMAPHORES=y
CONFIG_IDLETHREAD_STACKSIZE=4096
CONFIG_INIT_ENTRYPOINT="ostest_main"
CONFIG_MM_KASAN=y
CONFIG_MM_UBSAN=y
CONFIG_MM_UBSAN_TRAP_ON_ERROR=y
CONFIG_PTHREAD_CLEANUP=y
CONFIG_PTHREAD_CLEANUP_STACKSIZE=3
CONFIG_PTHREAD_MUTEX_TYPES=y

View file

@ -6,6 +6,9 @@
-Darwin,sim:rpserver
-Darwin,sim:sotest32
# clang doesn't -fsanitize=kernel-address
-Darwin,sim:ostest
# macOS doesn't support --wrap flag
# ld: unknown option: --wrap
-Darwin,sim:segger