From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] nanosleep: Use CLOCK_MONOTONIC for elapsed time measurement
Date: Tue, 31 Mar 2026 14:23:21 +0200 [thread overview]
Message-ID: <acu8uWUcHi-ecXLv@yuki.lan> (raw)
In-Reply-To: <69cbbbf2.050a0220.72fde.8c02@mx.google.com>
Hi!
> > #if _POSIX_MONOTONIC_CLOCK
> > # define TEST_CLOCK CLOCK_MONOTONIC
> > #else
> > # define TEST_CLOCK CLOCK_REALTIME
> > #endif
>
> good point. If it was a non-posix project it was called non-openposix :-)
>
> Do you think that check is enough in this case? Or we should just mark
> this test (if we really want to keep it 100% posix) as XFAIL ? I really
> didn't see any option but introducing CLOCK_MONOTONIC checks.
Maybe we can can print a hint that we are falling back to CLOCK_REALTIME
in case that CLOCK_MONOTNIC is not there and proceed with the test.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-03-31 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-31 11:48 [LTP] [PATCH] nanosleep: Use CLOCK_MONOTONIC for elapsed time measurement Andrea Cervesato
2026-03-31 12:14 ` Cyril Hrubis
2026-03-31 12:20 ` Andrea Cervesato via ltp
2026-03-31 12:23 ` Cyril Hrubis [this message]
2026-03-31 12:28 ` Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=acu8uWUcHi-ecXLv@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.