diff options
author | Nils Durner <durner@gnunet.org> | 2009-08-29 17:46:36 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-08-29 17:46:36 +0000 |
commit | 77b14843ec9990facf63586919c865d59c3a5996 (patch) | |
tree | 973abf1ae78c42a183da7780d0e1548f195d8610 /src/util/test_time.c | |
parent | d4f9a375af60b2c7a54e6e835c51da100aa8baa5 (diff) | |
download | gnunet-77b14843ec9990facf63586919c865d59c3a5996.tar.gz gnunet-77b14843ec9990facf63586919c865d59c3a5996.zip |
don't fail in testcases
Diffstat (limited to 'src/util/test_time.c')
-rw-r--r-- | src/util/test_time.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_time.c b/src/util/test_time.c index 9505952c2..2454efd32 100644 --- a/src/util/test_time.c +++ b/src/util/test_time.c | |||
@@ -46,10 +46,10 @@ check () | |||
46 | 46 | ||
47 | /* test overflow checking in multiply */ | 47 | /* test overflow checking in multiply */ |
48 | rel = GNUNET_TIME_UNIT_SECONDS; | 48 | rel = GNUNET_TIME_UNIT_SECONDS; |
49 | GNUNET_log_skip (1); | 49 | GNUNET_log_skip (1, GNUNET_NO); |
50 | for (i = 0; i < 55; i++) | 50 | for (i = 0; i < 55; i++) |
51 | rel = GNUNET_TIME_relative_multiply (rel, 2); | 51 | rel = GNUNET_TIME_relative_multiply (rel, 2); |
52 | GNUNET_log_skip (0); | 52 | GNUNET_log_skip (0, GNUNET_NO); |
53 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); | 53 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); |
54 | 54 | ||
55 | /* test infinity-check for relative to absolute */ | 55 | /* test infinity-check for relative to absolute */ |
@@ -58,15 +58,15 @@ check () | |||
58 | 58 | ||
59 | /* check overflow for r2a */ | 59 | /* check overflow for r2a */ |
60 | rel.value = ((uint64_t) - 1LL) - 1024; | 60 | rel.value = ((uint64_t) - 1LL) - 1024; |
61 | GNUNET_log_skip (1); | 61 | GNUNET_log_skip (1, GNUNET_NO); |
62 | last = GNUNET_TIME_relative_to_absolute (rel); | 62 | last = GNUNET_TIME_relative_to_absolute (rel); |
63 | GNUNET_log_skip (0); | 63 | GNUNET_log_skip (0, GNUNET_NO); |
64 | GNUNET_assert (last.value == GNUNET_TIME_UNIT_FOREVER_ABS.value); | 64 | GNUNET_assert (last.value == GNUNET_TIME_UNIT_FOREVER_ABS.value); |
65 | 65 | ||
66 | /* check overflow for relative add */ | 66 | /* check overflow for relative add */ |
67 | GNUNET_log_skip (1); | 67 | GNUNET_log_skip (1, GNUNET_NO); |
68 | rel = GNUNET_TIME_relative_add (rel, rel); | 68 | rel = GNUNET_TIME_relative_add (rel, rel); |
69 | GNUNET_log_skip (0); | 69 | GNUNET_log_skip (0, GNUNET_NO); |
70 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); | 70 | GNUNET_assert (rel.value == GNUNET_TIME_UNIT_FOREVER_REL.value); |
71 | 71 | ||
72 | /* check relation check in get_duration */ | 72 | /* check relation check in get_duration */ |