[LTP] lib: add safe macros for stream testing suite

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Thu Apr 16 17:34:37 CEST 2026


Hi Andrea,

--- [PATCH 3/7] ---

On Thu, 16 Apr 2026 16:33:37 +0200, Andrea Cervesato wrote:
> lib: add TST_EXP_PASS_PTR_NULL() macro

This lib commit is sandwiched between stream01 and stream02 test commits.
All library helper additions should come before the test rewrites that
depend on them.

--- [PATCH 5/7] ---

On Thu, 16 Apr 2026 16:33:39 +0200, Andrea Cervesato wrote:
> fs: rewrite stream03 test using new API

> +	rewind(stream);
> +	TST_EXP_EQ_LI(SAFE_FTELL(stream), SEEK_SET);

SEEK_SET is a whence-direction constant (== 0), not a byte offset.
Use 0 here instead.

---
Note:

Our agent completed the review of the patch. The full review can be
found at: https://patchwork.ozlabs.org/project/ltp/list/?series=500172

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list