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

@ -37,7 +37,7 @@ void _StackCheckHandler(void)
/* Stack canary error is a software fatal condition; treat it as such.
*/
z_except_reason(K_ERR_STACK_CHK_FAIL);
CODE_UNREACHABLE;
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */
}
/* Global variable */