Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: tests/clock/clock_irt_test.c

Issue 23464007: Update glibc revision (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Correct error checking Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « tests/clock/clock_get_test.c ('k') | tests/clock/clock_test.c » ('j') | tests/clock/clock_test.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698