Skip to content

Commit abc3310

Browse files
committed
tests: subsys: fs: bm_zms: add native_sim board target
* Updates the ztest to include the native_sim board target. * Fixes some configuration bugs in the test suite. * Fixes a bug where `bm_zms_clear` was not waited on until completion. * Refactor to wait for notifications. * Other cleanups. Signed-off-by: Mirko Covizzi <[email protected]>
1 parent 2270008 commit abc3310

File tree

5 files changed

+149
-76
lines changed

5 files changed

+149
-76
lines changed

samples/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# All these samples shall run without multithreading
1010
config MULTITHREADING
11-
default n if !UNITY
11+
default n if (!UNITY && !(ZTEST && BOARD_NATIVE_SIM))
1212

1313
# Software ISR table is not needed if multithreading is not used
1414
config GEN_SW_ISR_TABLE

subsys/fs/bm_zms/bm_zms.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929

3030
LOG_MODULE_REGISTER(bm_zms, CONFIG_BM_ZMS_LOG_LEVEL);
3131

32+
#if CONFIG_ZTEST && CONFIG_BOARD_NATIVE_SIM
33+
#define __ALIGN(x) __aligned(x)
34+
#endif
35+
3236
static zms_op_t cur_op; /* Current bm_zms operation. */
3337
static zms_op_t *p_cur_op;
3438
static atomic_t cur_op_result = ATOMIC_INIT(0);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BM_STORAGE_BACKEND_NATIVE_SIM=y
2+
CONFIG_HEAP_MEM_POOL_SIZE=1024

0 commit comments

Comments
 (0)