Skip to content

Commit e3d2e7d

Browse files
nashifcfriedt
authored andcommitted
tests: kernel: fix issue with stack overflow detection
on arc, the test fails with an MPU error instead of a stack overflow because the priv stack is merged into the defined stack. Fixes #68682 Signed-off-by: Anas Nashif <[email protected]>
1 parent 1c15986 commit e3d2e7d

File tree

1 file changed

+6
-0
lines changed
  • tests/kernel/fatal/exception/src

1 file changed

+6
-0
lines changed

tests/kernel/fatal/exception/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,17 @@ ZTEST(fatal_exception, test_fatal)
415415

416416
#ifdef CONFIG_USERSPACE
417417

418+
/* on arc, this fails with an MPU error instead of a stack
419+
* overflow because the priv stack is merged into the defined
420+
* stack.
421+
*/
422+
#if !defined(CONFIG_ARC)
418423
TC_PRINT("test stack HW-based overflow - user 1\n");
419424
check_stack_overflow(stack_hw_overflow, K_USER);
420425

421426
TC_PRINT("test stack HW-based overflow - user 2\n");
422427
check_stack_overflow(stack_hw_overflow, K_USER);
428+
#endif
423429

424430
TC_PRINT("test stack HW-based overflow - user priv stack 1\n");
425431
check_stack_overflow(user_priv_stack_hw_overflow, K_USER);

0 commit comments

Comments
 (0)