Skip to content

Commit 5a588f1

Browse files
nordic-krchjhedberg
authored andcommitted
tests: boards: nrf: dmm: Skip stress test for empty memory region
Skip stress test if null memory region. That's the case if DMM is disabled. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 92d5b46 commit 5a588f1

File tree

1 file changed

+4
-0
lines changed
  • tests/boards/nrf/dmm/src

1 file changed

+4
-0
lines changed

tests/boards/nrf/dmm/src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ static void stress_allocator(void *mem_reg, bool cached)
522522
int rv;
523523
uint32_t curr_use;
524524

525+
if (mem_reg == NULL) {
526+
ztest_test_skip();
527+
}
528+
525529
memset(&ctx, 0, sizeof(ctx));
526530
ctx.mem_reg = mem_reg;
527531
ctx.cached = cached;

0 commit comments

Comments
 (0)