Skip to content

Commit 8f4d8c5

Browse files
finikorgfabiobaltieri
authored andcommitted
tests: spsc_pbuf: Check return code
Make check_buffer() call useful. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 718be64 commit 8f4d8c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/lib/spsc_pbuf/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ bool stress_read(void *user_data, uint32_t cnt, bool last, int prio)
436436
zassert_true(false, "Unexpected error: %d, cnt:%d", len, ctx->read_cnt);
437437
}
438438

439-
check_buffer(buf, len, ctx->read_cnt);
439+
zassert_ok(check_buffer(buf, len, ctx->read_cnt));
440440
ctx->read_cnt++;
441441
}
442442

@@ -499,7 +499,7 @@ bool stress_claim_free(void *user_data, uint32_t cnt, bool last, int prio)
499499
return true;
500500
}
501501

502-
check_buffer(buf, len, ctx->read_cnt);
502+
zassert_ok(check_buffer(buf, len, ctx->read_cnt));
503503

504504
spsc_pbuf_free(ctx->pbuf, len);
505505

0 commit comments

Comments
 (0)