aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-10 10:51:12 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-10 10:51:12 +0000
commit00abe8aad5a33c716a02e20cc8257f055edca869 (patch)
treeeeb51a743e674b4088a127d5890ad91a8cf98a0f /src/datacache
parentf1be08d58422d8b9dc24eb7bce2b6ad050e093fd (diff)
downloadgnunet-00abe8aad5a33c716a02e20cc8257f055edca869.tar.gz
gnunet-00abe8aad5a33c716a02e20cc8257f055edca869.zip
-cleanup
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/test_datacache.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c
index d8d2f05db..97e2cda30 100644
--- a/src/datacache/test_datacache.c
+++ b/src/datacache/test_datacache.c
@@ -26,8 +26,6 @@
26#include "gnunet_util_lib.h" 26#include "gnunet_util_lib.h"
27#include "gnunet_datacache_lib.h" 27#include "gnunet_datacache_lib.h"
28 28
29#define VERBOSE GNUNET_NO
30
31#define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0) 29#define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0)
32 30
33static int ok; 31static int ok;
@@ -45,12 +43,12 @@ checkIt (void *cls, struct GNUNET_TIME_Absolute exp,
45{ 43{
46 if (size != sizeof (GNUNET_HashCode)) 44 if (size != sizeof (GNUNET_HashCode))
47 { 45 {
48 printf ("ERROR: Invalid size\n"); 46 GNUNET_break (0);
49 ok = 2; 47 ok = 2;
50 } 48 }
51 if (0 != memcmp (data, cls, size)) 49 if (0 != memcmp (data, cls, size))
52 { 50 {
53 printf ("ERROR: Invalid data\n"); 51 GNUNET_break (0);
54 ok = 3; 52 ok = 3;
55 } 53 }
56 return GNUNET_OK; 54 return GNUNET_OK;
@@ -123,9 +121,6 @@ main (int argc, char *argv[])
123 "test-datacache", 121 "test-datacache",
124 "-c", 122 "-c",
125 cfg_name, 123 cfg_name,
126#if VERBOSE
127 "-L", "DEBUG",
128#endif
129 NULL 124 NULL
130 }; 125 };
131 struct GNUNET_GETOPT_CommandLineOption options[] = { 126 struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -133,11 +128,7 @@ main (int argc, char *argv[])
133 }; 128 };
134 129
135 GNUNET_log_setup ("test-datacache", 130 GNUNET_log_setup ("test-datacache",
136#if VERBOSE
137 "DEBUG",
138#else
139 "WARNING", 131 "WARNING",
140#endif
141 NULL); 132 NULL);
142 /* determine name of plugin to use */ 133 /* determine name of plugin to use */
143 plugin_name = argv[0]; 134 plugin_name = argv[0];