[LTP] OpenPOSIX: Return PTS_UNTESTED when detaching or joining joined thread returns 0

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Thu May 21 05:42:33 CEST 2026


Hi Wei,

On 2026-05-21, Wei Gao wrote:
> OpenPOSIX: Return PTS_UNTESTED when detaching or joining joined thread returns 0

> +       if (ret == 0) {
> +               printf("Test UNTESTED: Implementation does not return ESRCH\n");
> +               return PTS_UNTESTED;
> +       }

Correct approach — returning PTS_UNTESTED is more semantically accurate than
accepting 0 as a passing result when ESRCH is the expected optional behavior.

Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>

---
Note:

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

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