tests: coverage: exclude the CODE UNREACHABLE of code coverage
1. Exclude the CODE UNREACHABLE line while generating coverage report. 2. Exclude the memory domain deprecated API when calculating code coverage. Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
This commit is contained in:
parent
07d67c1bd4
commit
53ca709828
10 changed files with 11 additions and 9 deletions
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
: [reason] "i" (reason_p), \
|
||||
[id] "i" (_TRAP_S_CALL_RUNTIME_EXCEPT) \
|
||||
: "memory"); \
|
||||
CODE_UNREACHABLE; \
|
||||
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
|
||||
} while (false)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -43,7 +43,7 @@ extern "C" {
|
|||
compiler_barrier(); \
|
||||
z_impl_user_fault(reason_p); \
|
||||
} \
|
||||
CODE_UNREACHABLE; \
|
||||
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
|
||||
} while (false)
|
||||
#else
|
||||
#define ARCH_EXCEPT(reason_p) do { \
|
||||
|
|
|
@ -442,7 +442,7 @@ extern struct task_state_segment _main_tss;
|
|||
: \
|
||||
: [vector] "i" (Z_X86_OOPS_VECTOR), \
|
||||
[reason] "i" (reason_p)); \
|
||||
CODE_UNREACHABLE; \
|
||||
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
|
||||
} while (false)
|
||||
|
||||
/*
|
||||
|
|
|
@ -110,7 +110,7 @@ struct x86_ssf {
|
|||
"int $32\n\t" \
|
||||
: \
|
||||
: [reason] "i" (reason_p)); \
|
||||
CODE_UNREACHABLE; \
|
||||
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
|
||||
} while (false)
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue