Skip to content

Commit 676b1ae

Browse files
Andrew Boienashif
authored andcommitted
kernel: idle: exclude no-op funcs from coverage
These get overridden anyway. Signed-off-by: Andrew Boie <[email protected]>
1 parent 682a53d commit 676b1ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kernel/idle.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
*/
2727
unsigned char sys_pm_idle_exit_notify;
2828

29+
30+
/* LCOV_EXCL_START
31+
* These are almost certainly overidden and in any event do nothing
32+
*/
2933
#if defined(CONFIG_SYS_POWER_SLEEP_STATES)
3034
void __attribute__((weak)) _sys_resume(void)
3135
{
@@ -37,6 +41,7 @@ void __attribute__((weak)) _sys_resume_from_deep_sleep(void)
3741
{
3842
}
3943
#endif
44+
/* LCOV_EXCL_STOP */
4045

4146
#endif /* CONFIG_SYS_POWER_MANAGEMENT */
4247

0 commit comments

Comments
 (0)