Index: tests/clock/clock_irt_test.c |
diff --git a/tests/clock/clock_irt_test.c b/tests/clock/clock_irt_test.c |
index 7c48a4af71bac76a010bef98bffcbb6020731ce9..c5763341bccf8c300c03e54d302d8b177ea4def4 100644 |
--- a/tests/clock/clock_irt_test.c |
+++ b/tests/clock/clock_irt_test.c |
@@ -84,11 +84,23 @@ int main(void) { |
errs += TimeTest(ti.clock_getres, CLOCK_MONOTONIC, |
"clock_getres on monotonic clock failed", |
"Monotonic clock resolution"); |
+ errs += TimeTest(ti.clock_getres, CLOCK_PROCESS_CPUTIME_ID, |
+ "clock_getres on process CPU-time clock failed", |
+ "Process CPU-time clock resolution"); |
+ errs += TimeTest(ti.clock_getres, CLOCK_THREAD_CPUTIME_ID, |
+ "clock_getres on thread CPU-time clock failed", |
+ "Thread CPU-time clock resolution"); |
errs += TimeTest(ti.clock_gettime, CLOCK_REALTIME, |
"clock_gettime on realtime clock failed", |
"Realtime clock value"); |
errs += TimeTest(ti.clock_gettime, CLOCK_MONOTONIC, |
"clock_gettime on monotonic clock failed", |
"Monotonic clock value"); |
+ errs += TimeTest(ti.clock_gettime, CLOCK_PROCESS_CPUTIME_ID, |
+ "clock_gettime on process CPU-time clock failed", |
+ "Process CPU-time clock value"); |
+ errs += TimeTest(ti.clock_gettime, CLOCK_THREAD_CPUTIME_ID, |
+ "clock_gettime on thread CPU-time clock failed", |
+ "Thread CPU-time clock value"); |
return errs; |
} |