From 1a2471411605302574df89cc82d7a3b4da0b2005 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 20 Sep 2009 01:09:32 +0000 Subject: Use .11111s instead of .1s in tests to illustrate precision. --- tests/introspective-cputime.c | 2 +- tests/introspective-system.c | 2 +- tests/monotonic-cputime.c | 2 +- tests/monotonic-realticks.c | 2 +- tests/monotonic-system.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/introspective-cputime.c b/tests/introspective-cputime.c index b35e2f4..f96b652 100644 --- a/tests/introspective-cputime.c +++ b/tests/introspective-cputime.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_INTROSPECTIVE, SANDGLASS_CPUTIME }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/introspective-system.c b/tests/introspective-system.c index beb799f..61e3678 100644 --- a/tests/introspective-system.c +++ b/tests/introspective-system.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_INTROSPECTIVE, SANDGLASS_SYSTEM }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-cputime.c b/tests/monotonic-cputime.c index 4d56793..7733a3a 100644 --- a/tests/monotonic-cputime.c +++ b/tests/monotonic-cputime.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_CPUTIME }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-realticks.c b/tests/monotonic-realticks.c index c548f18..119b3bb 100644 --- a/tests/monotonic-realticks.c +++ b/tests/monotonic-realticks.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_REALTICKS }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); diff --git a/tests/monotonic-system.c b/tests/monotonic-system.c index 3c8e9be..e36c6c9 100644 --- a/tests/monotonic-system.c +++ b/tests/monotonic-system.c @@ -30,7 +30,7 @@ main() { sandglass_t sandglass; sandglass_attributes_t attr = { SANDGLASS_MONOTONIC, SANDGLASS_SYSTEM }; - struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 100000000L }; + struct timespec tosleep = { .tv_sec = 0, .tv_nsec = 111111111L }; if (sandglass_create(&sandglass, &attr, &attr) != 0) { perror("sandglass_create()"); -- cgit v1.2.3