[LTP] nanosleep: use POSIX runtime detection for CLOCK_MONOTONIC
Andrea Cervesato
andrea.cervesato@suse.com
Thu Apr 16 14:04:21 CEST 2026
Hi Petr,
> I'd hope agent would find other '#ifdef _POSIX_MONOTONIC_CLOCK' use without
> <unistd.h> which is in
> testcases/open_posix_testsuite/conformance/interfaces/clock_settime/helpers.h
It's one rule behind to make agent discovering this. There's no rule
in the actually c-tests.md agent configuration about this particular
case. I personally never add any include to the file if it's imported
already from other headers.
But we know that everyone has their own opiinon when it comes to C :-)
Should we add a rule to the agent spotting/ignoring these corner cases?
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list