testsuite: suppress usage of setjmp in a testcode
According to the rule MISRAC-2012 21.4.b the standard header file <setjmp.h> shall not be used. Suppress it, because it raises violation in a testcode, not in a runtime code. Tag suppresses reporting of violation for the current file, starting from the line where the suppression is located. Found as a coding guideline violation (MISRA R21.4.b) by static coding scanning tool. Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>
This commit is contained in:
parent
6eb7574076
commit
ab3a207baf
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ 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 <setjmp.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue