tests: spsc_pbuf: Check return code
Make check_buffer() call useful.
@@ -436,7 +436,7 @@ bool stress_read(void *user_data, uint32_t cnt, bool last, int prio)
zassert_true(false, "Unexpected error: %d, cnt:%d", len, ctx->read_cnt);
}
- check_buffer(buf, len, ctx->read_cnt);
+ zassert_ok(check_buffer(buf, len, ctx->read_cnt));
ctx->read_cnt++;
}
@@ -499,7 +499,7 @@ bool stress_claim_free(void *user_data, uint32_t cnt, bool last, int prio)
return true;
}
- check_buffer(buf, len, ctx->read_cnt);
+ zassert_ok(check_buffer(buf, len, ctx->read_cnt));
spsc_pbuf_free(ctx->pbuf, len);
