Skip to content

Commit e11262c

Browse files
pabigotnashif
authored andcommitted
tests: lib: os: onoff: address Coverity complaint
Coverity believes that a field is null when it isn't. Duplicate the assert from 20 lines up in hopes it learns better. Signed-off-by: Peter Bigot <[email protected]>
1 parent eddd98f commit e11262c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/lib/onoff/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,8 @@ static void test_async(void)
805805
cli[0].result = 1 + start_state.retval;
806806
zassert_equal(cli_result(&cli[0]), -EAGAIN,
807807
"fetch failed");
808+
zassert_false(start_state.notify == NULL,
809+
"start invoked");
808810
notify(&start_state);
809811
zassert_equal(cli_result(&cli[0]), start_state.retval,
810812
"start notified");

0 commit comments

Comments
 (0)