[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21851 - gnunet/src/datacache
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21851 - gnunet/src/datacache |
Date: |
Sun, 10 Jun 2012 12:51:12 +0200 |
Author: grothoff
Date: 2012-06-10 12:51:12 +0200 (Sun, 10 Jun 2012)
New Revision: 21851
Modified:
gnunet/src/datacache/test_datacache.c
Log:
-cleanup
Modified: gnunet/src/datacache/test_datacache.c
===================================================================
--- gnunet/src/datacache/test_datacache.c 2012-06-10 10:48:29 UTC (rev
21850)
+++ gnunet/src/datacache/test_datacache.c 2012-06-10 10:51:12 UTC (rev
21851)
@@ -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 @@
{
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 @@
"test-datacache",
"-c",
cfg_name,
-#if VERBOSE
- "-L", "DEBUG",
-#endif
NULL
};
struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -133,11 +128,7 @@
};
GNUNET_log_setup ("test-datacache",
-#if VERBOSE
- "DEBUG",
-#else
"WARNING",
-#endif
NULL);
/* determine name of plugin to use */
plugin_name = argv[0];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21851 - gnunet/src/datacache,
gnunet <=