aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_testing.c')
-rw-r--r--src/testing/test_testing.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testing/test_testing.c b/src/testing/test_testing.c
index 079ccb6db..64bf7572a 100644
--- a/src/testing/test_testing.c
+++ b/src/testing/test_testing.c
@@ -24,7 +24,7 @@
24#include "platform.h" 24#include "platform.h"
25#include "gnunet_testing_lib.h" 25#include "gnunet_testing_lib.h"
26 26
27#define VERBOSE GNUNET_NO 27#define VERBOSE GNUNET_YES
28 28
29#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) 29#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300)
30 30
@@ -41,7 +41,8 @@ end_cb (void *cls, const char *emsg)
41 else 41 else
42 { 42 {
43#if VERBOSE 43#if VERBOSE
44 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Daemon terminated, will now exit.\n"); 44 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
45 "Daemon terminated, will now exit.\n");
45#endif 46#endif
46 ok = 0; 47 ok = 0;
47 } 48 }
@@ -58,7 +59,8 @@ my_cb (void *cls,
58 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 59 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
59 "Daemon `%s' started, will now stop it.\n", GNUNET_i2s (id)); 60 "Daemon `%s' started, will now stop it.\n", GNUNET_i2s (id));
60#endif 61#endif
61 GNUNET_TESTING_daemon_stop (d, TIMEOUT, &end_cb, NULL, GNUNET_YES, GNUNET_NO); 62 GNUNET_TESTING_daemon_stop (d, TIMEOUT, &end_cb, NULL, GNUNET_YES,
63 GNUNET_NO);
62} 64}
63 65
64 66
@@ -73,7 +75,9 @@ run (void *cls,
73#if VERBOSE 75#if VERBOSE
74 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemon.\n"); 76 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemon.\n");
75#endif 77#endif
76 d = GNUNET_TESTING_daemon_start (cfg, TIMEOUT, NULL, NULL, 0, NULL, NULL, &my_cb, NULL); 78 d =
79 GNUNET_TESTING_daemon_start (cfg, TIMEOUT, NULL, NULL, 0, NULL, NULL,
80 &my_cb, NULL);
77 GNUNET_assert (d != NULL); 81 GNUNET_assert (d != NULL);
78} 82}
79 83