From: Edward Liaw via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Cc: kernel-team@android.com
Subject: [LTP] [PATCH v1] syscalls/timerfd04: incorrect CLOCK_BOOTIME end
Date: Thu, 4 Aug 2022 00:06:26 +0000 [thread overview]
Message-ID: <20220804000626.1098734-1-edliaw@google.com> (raw)
The end time was hardcoded to CLOCK_MONOTONIC and needs to be changed to
the clk_id of the test case.
Signed-off-by: Edward Liaw <edliaw@google.com>
Change-Id: I28c5b7d0132bf32cae6c50faa7d300ded42cc9f7
---
testcases/kernel/syscalls/timerfd/timerfd04.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/timerfd/timerfd04.c b/testcases/kernel/syscalls/timerfd/timerfd04.c
index 4af91d6f8..eb7f98d5b 100644
--- a/testcases/kernel/syscalls/timerfd/timerfd04.c
+++ b/testcases/kernel/syscalls/timerfd/timerfd04.c
@@ -94,9 +94,9 @@ static void verify_timerfd(unsigned int n)
SAFE_WAIT(NULL);
- if (tv->clock_gettime(CLOCK_MONOTONIC, tst_ts_get(&end))) {
+ if (tv->clock_gettime(tc->clk_id, tst_ts_get(&end))) {
tst_res(TFAIL | TERRNO, "clock_gettime(2) failed for clock %s",
- tst_clock_name(CLOCK_MONOTONIC));
+ tst_clock_name(tc->clk_id));
return;
}
--
2.37.1.455.g008518b4e5-goog
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2022-08-04 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-04 0:06 Edward Liaw via ltp [this message]
2022-08-09 5:49 ` [LTP] [PATCH v1] syscalls/timerfd04: incorrect CLOCK_BOOTIME end Petr Vorel
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=20220804000626.1098734-1-edliaw@google.com \
--to=ltp@lists.linux.it \
--cc=edliaw@google.com \
--cc=kernel-team@android.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox