Skip to content

Commit e3d084c

Browse files
shaoanxlicarlescufi
authored andcommitted
tests: arch: fix arm_thread_swap on stm32 platform
The test fails on several stm32 platforms, due to the correlation between test_arm_syscalls and test_arm_thread_swap, so disable the corresponding IRQ interrupt may fix it. Signed-off-by: Shaoan Li <[email protected]>
1 parent 989e17a commit e3d084c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/arch/arm/arm_thread_swap/src/arm_syscalls.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ void arm_isr_handler(const void *args)
114114
zassert_true(__get_MSPLIM() == (uint32_t)z_interrupt_stacks,
115115
"MSPLIM not guarding the interrupt stack\n");
116116
#endif
117+
NVIC_DisableIRQ((uint32_t)args);
117118
}
118119
}
119120

@@ -212,7 +213,7 @@ ZTEST(arm_thread_swap, test_arm_syscalls)
212213

213214
arch_irq_connect_dynamic(i, 0 /* highest priority */,
214215
arm_isr_handler,
215-
NULL,
216+
(uint32_t *)i,
216217
0);
217218

218219
NVIC_ClearPendingIRQ(i);

0 commit comments

Comments
 (0)