aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_time.c')
-rw-r--r--src/util/test_time.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/util/test_time.c b/src/util/test_time.c
index bf4655b48..eecbbafae 100644
--- a/src/util/test_time.c
+++ b/src/util/test_time.c
@@ -64,8 +64,10 @@ check ()
64 GNUNET_assert (GNUNET_TIME_relative_get_zero ().value == GNUNET_TIME_relative_multiply (rel,0).value); 64 GNUNET_assert (GNUNET_TIME_relative_get_zero ().value == GNUNET_TIME_relative_multiply (rel,0).value);
65 65
66 /* test infinity-check for relative to absolute */ 66 /* test infinity-check for relative to absolute */
67 GNUNET_log_skip (1, GNUNET_NO);
67 last = GNUNET_TIME_relative_to_absolute (rel); 68 last = GNUNET_TIME_relative_to_absolute (rel);
68 GNUNET_assert (last.value == GNUNET_TIME_UNIT_FOREVER_ABS.value); 69 GNUNET_assert (last.value == GNUNET_TIME_UNIT_FOREVER_ABS.value);
70 GNUNET_log_skip (0, GNUNET_YES);
69 71
70 /*check relative to absolute*/ 72 /*check relative to absolute*/
71 rel.value = 0; 73 rel.value = 0;
@@ -179,13 +181,15 @@ check ()
179 forever = GNUNET_TIME_absolute_get_forever (); 181 forever = GNUNET_TIME_absolute_get_forever ();
180 forever.value = forever.value - 1024; 182 forever.value = forever.value - 1024;
181 GNUNET_assert(GNUNET_TIME_absolute_get_zero ().value == 183 GNUNET_assert(GNUNET_TIME_absolute_get_zero ().value ==
182 GNUNET_TIME_calculate_eta (forever,50000,100000).value); 184 GNUNET_TIME_calculate_eta (forever, 50000, 100000).value);
183 /*check zero*/ 185 /* check zero */
186 GNUNET_log_skip (1, GNUNET_NO);
184 GNUNET_assert(GNUNET_TIME_UNIT_ZERO.value == 187 GNUNET_assert(GNUNET_TIME_UNIT_ZERO.value ==
185 (GNUNET_TIME_calculate_eta (last,60000,50000)).value); 188 (GNUNET_TIME_calculate_eta (last, 60000, 50000)).value);
189 GNUNET_log_skip (0, GNUNET_YES);
186 /*check forever*/ 190 /*check forever*/
187 GNUNET_assert(GNUNET_TIME_UNIT_FOREVER_REL.value == 191 GNUNET_assert(GNUNET_TIME_UNIT_FOREVER_REL.value ==
188 (GNUNET_TIME_calculate_eta (last,0,50000)).value); 192 (GNUNET_TIME_calculate_eta (last, 0, 50000)).value);
189 193
190 /*check relative subtract*/ 194 /*check relative subtract*/
191 now = GNUNET_TIME_absolute_get (); 195 now = GNUNET_TIME_absolute_get ();