diff options
author | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-26 21:59:36 +0000 |
---|---|---|
committer | Ji Lu <jilu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2009-10-26 21:59:36 +0000 |
commit | 64d39ac5f14b54eecc2c7cd99b04d05ff04a894f (patch) | |
tree | fab5656bc0d4c0aa525ea2d0ce5576198193a233 /src/util/test_time.c | |
parent | f29194cd952c10f655e175b056ce813d11fce1f2 (diff) | |
download | gnunet-64d39ac5f14b54eecc2c7cd99b04d05ff04a894f.tar.gz gnunet-64d39ac5f14b54eecc2c7cd99b04d05ff04a894f.zip |
test time.c
Diffstat (limited to 'src/util/test_time.c')
-rw-r--r-- | src/util/test_time.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/util/test_time.c b/src/util/test_time.c index 8bc2c9123..ec8d3e9ad 100644 --- a/src/util/test_time.c +++ b/src/util/test_time.c | |||
@@ -77,10 +77,14 @@ check () | |||
77 | GNUNET_log_skip (0, GNUNET_NO); | 77 | GNUNET_log_skip (0, GNUNET_NO); |
78 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); | 78 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); |
79 | 79 | ||
80 | GNUNET_assert (GNUNET_TIME_relative_add (relForever, relForever).value == | 80 | GNUNET_log_skip (1, GNUNET_NO); |
81 | relForever.value); | 81 | rel = GNUNET_TIME_relative_add (relForever, relForever); |
82 | GNUNET_assert (GNUNET_TIME_relative_add (relUnit, relUnit).value == | 82 | GNUNET_log_skip (0, GNUNET_NO); |
83 | 2 * relUnit.value); | 83 | GNUNET_assert (rel.value == relForever.value); |
84 | |||
85 | GNUNET_log_skip (1, GNUNET_NO); | ||
86 | rel = GNUNET_TIME_relative_add (relUnit, relUnit); | ||
87 | GNUNET_assert (rel.value == 2 * relUnit.value); | ||
84 | 88 | ||
85 | /* check relation check in get_duration */ | 89 | /* check relation check in get_duration */ |
86 | future.value = now.value + 1000000; | 90 | future.value = now.value + 1000000; |