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:
Enjia Mai 2021-01-15 17:09:58 +08:00 committed by Anas Nashif
commit 53ca709828
10 changed files with 11 additions and 9 deletions

View file

@ -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

View file

@ -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 { \

View file

@ -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)
/*

View file

@ -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 */