summaryrefslogtreecommitdiff
path: root/src/util/test_scheduler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-13 15:18:35 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-13 15:18:35 +0000
commit2742cca3d2180b4f615c40609fccf10a806f05c8 (patch)
tree7a59d0d43951cec4f0edd903f02ead3dbe037a2f /src/util/test_scheduler.c
parent832d12049add37805697104b9f8eaae420eef406 (diff)
downloadgnunet-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.c13
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
31struct GNUNET_DISK_PipeHandle *p;
32
33static const struct GNUNET_DISK_FileHandle *fds[2];
34
31 35
32static void 36static void
33task2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 37task2 (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
54struct GNUNET_DISK_PipeHandle *p;
55static const struct GNUNET_DISK_FileHandle *fds[2];
56
57 58
58static void 59static void
59taskWrt (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 60taskWrt (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
77static void 79static void
78taskLast (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 80taskLast (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
87static void 90static void
88taskRd (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 91taskRd (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
233int 234int
234main (int argc, char *argv[]) 235main (int argc, char *argv[])
235{ 236{