Skip to content

Commit 3b271ca

Browse files
committed
automatic reboot when Zephyr crashes so tests don't stall
1 parent a2145da commit 3b271ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/test262/_262.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,3 +663,12 @@ void _262_evalScript(txMachine* the)
663663
mxPullSlot(mxResult);
664664
}
665665

666+
#if _ZEPHYR
667+
668+
void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf)
669+
{
670+
//@@ LOG_PANIC();
671+
sys_reboot(SYS_REBOOT_COLD);
672+
}
673+
674+
#endif

0 commit comments

Comments
 (0)