-cleanup
authorChristian Grothoff <christian@grothoff.org>
Sun, 10 Jun 2012 10:51:12 +0000 (10:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 10 Jun 2012 10:51:12 +0000 (10:51 +0000)
src/datacache/test_datacache.c

index d8d2f05db7d1317dd50c217a5a0d522ce6112185..97e2cda308ffe53bef3ad4dc6041d37d95f95adc 100644 (file)
@@ -26,8 +26,6 @@
 #include "gnunet_util_lib.h"
 #include "gnunet_datacache_lib.h"
 
-#define VERBOSE GNUNET_NO
-
 #define ASSERT(x) do { if (! (x)) { printf("Error at %s:%d\n", __FILE__, __LINE__); goto FAILURE;} } while (0)
 
 static int ok;
@@ -45,12 +43,12 @@ checkIt (void *cls, struct GNUNET_TIME_Absolute exp,
 {
   if (size != sizeof (GNUNET_HashCode))
   {
-    printf ("ERROR: Invalid size\n");
+    GNUNET_break (0);
     ok = 2;
   }
   if (0 != memcmp (data, cls, size))
   {
-    printf ("ERROR: Invalid data\n");
+    GNUNET_break (0);
     ok = 3;
   }
   return GNUNET_OK;
@@ -123,9 +121,6 @@ main (int argc, char *argv[])
     "test-datacache",
     "-c",
     cfg_name,
-#if VERBOSE
-    "-L", "DEBUG",
-#endif
     NULL
   };
   struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -133,11 +128,7 @@ main (int argc, char *argv[])
   };
 
   GNUNET_log_setup ("test-datacache",
-#if VERBOSE
-                    "DEBUG",
-#else
                     "WARNING",
-#endif
                     NULL);
   /* determine name of plugin to use */
   plugin_name = argv[0];