tests: spsc_pbuf: Check return code
Make check_buffer() call useful. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
718be64e14
commit
8f4d8c5cce
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
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++;
|
ctx->read_cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ bool stress_claim_free(void *user_data, uint32_t cnt, bool last, int prio)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
check_buffer(buf, len, ctx->read_cnt);
|
zassert_ok(check_buffer(buf, len, ctx->read_cnt));
|
||||||
|
|
||||||
spsc_pbuf_free(ctx->pbuf, len);
|
spsc_pbuf_free(ctx->pbuf, len);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue