aboutsummaryrefslogtreecommitdiff
path: root/src/nse/test_nse_api.c
diff options
context:
space:
mode:
authorBertrand Marc <beberking@gmail.com>2012-06-06 20:47:48 +0200
committerBertrand Marc <beberking@gmail.com>2012-06-06 20:47:48 +0200
commit740b30688bd745a527f96f9116c19acb3480971a (patch)
tree2709a3f4dba11c174aa9e1ba3612e30c578e76a9 /src/nse/test_nse_api.c
parent2b81464a43485fcc8ce079fafdee7b7a171835f4 (diff)
Imported Upstream version 0.9.3upstream/0.9.3
Diffstat (limited to 'src/nse/test_nse_api.c')
-rw-r--r--src/nse/test_nse_api.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c
index f6cde3f..f99cb3b 100644
--- a/src/nse/test_nse_api.c
+++ b/src/nse/test_nse_api.c
@@ -29,8 +29,6 @@
#include "gnunet_scheduler_lib.h"
#include "gnunet_nse_service.h"
-#define DEBUG_NSE GNUNET_YES
-
#define START_ARM GNUNET_YES
static struct GNUNET_NSE_Handle *h;
@@ -55,7 +53,7 @@ stop_arm (struct PeerContext *p)
if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM))
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
GNUNET_OS_process_wait (p->arm_proc);
- GNUNET_OS_process_close (p->arm_proc);
+ GNUNET_OS_process_destroy (p->arm_proc);
p->arm_proc = NULL;
#endif
GNUNET_CONFIGURATION_destroy (p->cfg);
@@ -147,11 +145,7 @@ check ()
char *const argv[] = { "test-nse-api",
"-c",
"test_nse.conf",
-#if DEBUG_NSE
- "-L", "DEBUG",
-#else
"-L", "WARNING",
-#endif
NULL
};
struct GNUNET_GETOPT_CommandLineOption options[] = {
@@ -173,14 +167,9 @@ main (int argc, char *argv[])
int ret;
GNUNET_log_setup ("test_nse_api",
-#if DEBUG_NSE
- "DEBUG",
-#else
"WARNING",
-#endif
NULL);
ret = check ();
-
return ret;
}