[LTP] openposix: timer_*/speculative: Skip untestable optional behavior on Linux

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Wed Aug 19 12:33:10 CEST 2026


Hi Avinesh,

On Wed, 19 Aug 2026, Avinesh Kumar wrote:
> openposix: timer_*/speculative: Skip untestable optional behavior on Linux

> +#ifdef __linux__
> +	printf("Linux does not implement this optional behavior\n");
> +	return PTS_UNSUPPORTED;
> +#else

Could these branches be removed from all eleven tests? Linux 7.2 uses
scoped_timer_get_or_fail() to return -EINVAL for invalid timer IDs in
timer_gettime(), timer_getoverrun(), timer_settime(), and timer_delete().
The installed man pages document the same EINVAL result.

More directly, every pre-patch test reports errno == EINVAL and returns
PTS_PASS when built and run on Linux. The platform check therefore replaces
working coverage with PTS_UNSUPPORTED, and the quoted runtime message is not
accurate.

Verdict - Needs revision

---
Note:

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