misc: assert_post_action: Treat POSIX arch like others
After #12732, 6904501173
asserts call k_panic.
Before this, the POSIX arch had its own hack in the
__ASSERT_POST implementation to terminate the process instead
of spining forever.
But the POSIX arch does implement k_panic properly, so there
is no need anymore for this hack.
=> Remove the special treatment for POSIX ARCH
Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
1305a9eb35
commit
c2699dd52d
|
@ -9,10 +9,5 @@
|
|||
|
||||
void assert_post_action(void)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_ARCH_POSIX)) {
|
||||
extern void posix_exit(int exit_code);
|
||||
posix_exit(1);
|
||||
} else {
|
||||
k_panic();
|
||||
}
|
||||
k_panic();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue