diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
commit | 2742cca3d2180b4f615c40609fccf10a806f05c8 (patch) | |
tree | 7a59d0d43951cec4f0edd903f02ead3dbe037a2f /src/util/test_scheduler.c | |
parent | 832d12049add37805697104b9f8eaae420eef406 (diff) | |
download | gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.tar.gz gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.zip |
-cleaning up VERBOSE and check nonsense in util tests
Diffstat (limited to 'src/util/test_scheduler.c')
-rw-r--r-- | src/util/test_scheduler.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util/test_scheduler.c b/src/util/test_scheduler.c index 9832ade6f..2a9ed2db1 100644 --- a/src/util/test_scheduler.c +++ b/src/util/test_scheduler.c | |||
@@ -27,7 +27,11 @@ | |||
27 | #include "gnunet_time_lib.h" | 27 | #include "gnunet_time_lib.h" |
28 | #include "gnunet_disk_lib.h" | 28 | #include "gnunet_disk_lib.h" |
29 | 29 | ||
30 | #define VERBOSE GNUNET_NO | 30 | |
31 | struct GNUNET_DISK_PipeHandle *p; | ||
32 | |||
33 | static const struct GNUNET_DISK_FileHandle *fds[2]; | ||
34 | |||
31 | 35 | ||
32 | static void | 36 | static void |
33 | task2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 37 | task2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
@@ -51,9 +55,6 @@ task3 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
51 | (*ok) = 4; | 55 | (*ok) = 4; |
52 | } | 56 | } |
53 | 57 | ||
54 | struct GNUNET_DISK_PipeHandle *p; | ||
55 | static const struct GNUNET_DISK_FileHandle *fds[2]; | ||
56 | |||
57 | 58 | ||
58 | static void | 59 | static void |
59 | taskWrt (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 60 | taskWrt (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
@@ -74,6 +75,7 @@ taskNeverRun (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
74 | GNUNET_assert (0); | 75 | GNUNET_assert (0); |
75 | } | 76 | } |
76 | 77 | ||
78 | |||
77 | static void | 79 | static void |
78 | taskLast (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 80 | taskLast (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
79 | { | 81 | { |
@@ -84,6 +86,7 @@ taskLast (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
84 | (*ok) = 0; | 86 | (*ok) = 0; |
85 | } | 87 | } |
86 | 88 | ||
89 | |||
87 | static void | 90 | static void |
88 | taskRd (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 91 | taskRd (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
89 | { | 92 | { |
@@ -132,7 +135,6 @@ task1 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
132 | } | 135 | } |
133 | 136 | ||
134 | 137 | ||
135 | |||
136 | /** | 138 | /** |
137 | * Main method, starts scheduler with task1, | 139 | * Main method, starts scheduler with task1, |
138 | * checks that "ok" is correct at the end. | 140 | * checks that "ok" is correct at the end. |
@@ -229,7 +231,6 @@ checkCancel () | |||
229 | } | 231 | } |
230 | 232 | ||
231 | 233 | ||
232 | |||
233 | int | 234 | int |
234 | main (int argc, char *argv[]) | 235 | main (int argc, char *argv[]) |
235 | { | 236 | { |