diff --git a/subsys/testsuite/ztest/src/ztest.c b/subsys/testsuite/ztest/src/ztest.c index 90e8ca83bdb..4e1abbf73a2 100644 --- a/subsys/testsuite/ztest/src/ztest.c +++ b/subsys/testsuite/ztest/src/ztest.c @@ -207,8 +207,14 @@ static void run_test_functions(struct unit_test *test) } #ifndef KERNEL -/* parasoft suppress item MISRAC2012-RULE_21_4-b "setjmp using in test code" */ -#include + +/* Static code analysis tool can raise a violation that the standard header + * shall not be used. + * + * setjmp is using in a test code, not in a runtime code, it is acceptable. + * It is a deliberate deviation. + */ +#include /* parasoft-suppress MISRAC2012-RULE_21_4-a MISRAC2012-RULE_21_4-b*/ #include #include #include