aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-24 08:17:41 +0000
committerGabor X Toth <*@tg-x.net>2014-07-24 08:17:41 +0000
commitb618f1ebf6121fd8652c44a43b70724d883b73e4 (patch)
tree7ab0b4e8180d528b71bd8dc1842c9de02544e81d /src
parenta0a1be272163eb4dfbe73450cc08dc236f4e62fc (diff)
downloadgnunet-b618f1ebf6121fd8652c44a43b70724d883b73e4.tar.gz
gnunet-b618f1ebf6121fd8652c44a43b70724d883b73e4.zip
multicast,psyc,social: remove DEBUG #defines from tests to keep `make check` working
Diffstat (limited to 'src')
-rw-r--r--src/multicast/test_multicast.c6
-rw-r--r--src/psyc/test_psyc.c7
-rw-r--r--src/social/test_social.c5
3 files changed, 6 insertions, 12 deletions
diff --git a/src/multicast/test_multicast.c b/src/multicast/test_multicast.c
index 73606c4b0..a8a8cb611 100644
--- a/src/multicast/test_multicast.c
+++ b/src/multicast/test_multicast.c
@@ -35,8 +35,6 @@
35 35
36#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) 36#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
37 37
38#define DEBUG_SERVICE 0
39
40/** 38/**
41 * Return value from 'main'. 39 * Return value from 'main'.
42 */ 40 */
@@ -116,7 +114,7 @@ end ()
116 * @param peer handle to access more of the peer (not used) 114 * @param peer handle to access more of the peer (not used)
117 */ 115 */
118static void 116static void
119#if DEBUG_SERVICE 117#if DEBUG_TEST_MULTICAST
120run (void *cls, char *const *args, const char *cfgfile, 118run (void *cls, char *const *args, const char *cfgfile,
121 const struct GNUNET_CONFIGURATION_Handle *c) 119 const struct GNUNET_CONFIGURATION_Handle *c)
122#else 120#else
@@ -138,7 +136,7 @@ int
138main (int argc, char *argv[]) 136main (int argc, char *argv[])
139{ 137{
140 res = 1; 138 res = 1;
141#if DEBUG_SERVICE 139#if DEBUG_TEST_MULTICAST
142 const struct GNUNET_GETOPT_CommandLineOption opts[] = { 140 const struct GNUNET_GETOPT_CommandLineOption opts[] = {
143 GNUNET_GETOPT_OPTION_END 141 GNUNET_GETOPT_OPTION_END
144 }; 142 };
diff --git a/src/psyc/test_psyc.c b/src/psyc/test_psyc.c
index 495e3be47..2f6c8f628 100644
--- a/src/psyc/test_psyc.c
+++ b/src/psyc/test_psyc.c
@@ -38,9 +38,6 @@
38 38
39#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) 39#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
40 40
41#define DEBUG_SERVICE 0
42
43
44/** 41/**
45 * Return value from 'main'. 42 * Return value from 'main'.
46 */ 43 */
@@ -570,7 +567,7 @@ master_start_cb (void *cls, uint64_t max_message_id)
570 * @param peer handle to access more of the peer (not used) 567 * @param peer handle to access more of the peer (not used)
571 */ 568 */
572static void 569static void
573#if DEBUG_SERVICE 570#if DEBUG_TEST_PSYC
574run (void *cls, char *const *args, const char *cfgfile, 571run (void *cls, char *const *args, const char *cfgfile,
575 const struct GNUNET_CONFIGURATION_Handle *c) 572 const struct GNUNET_CONFIGURATION_Handle *c)
576#else 573#else
@@ -600,7 +597,7 @@ int
600main (int argc, char *argv[]) 597main (int argc, char *argv[])
601{ 598{
602 res = 1; 599 res = 1;
603#if DEBUG_SERVICE 600#if DEBUG_TEST_PSYC
604 const struct GNUNET_GETOPT_CommandLineOption opts[] = { 601 const struct GNUNET_GETOPT_CommandLineOption opts[] = {
605 GNUNET_GETOPT_OPTION_END 602 GNUNET_GETOPT_OPTION_END
606 }; 603 };
diff --git a/src/social/test_social.c b/src/social/test_social.c
index fa3ce6e6d..5072ecec0 100644
--- a/src/social/test_social.c
+++ b/src/social/test_social.c
@@ -38,7 +38,6 @@
38 38
39#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) 39#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
40 40
41#define DEBUG_SERVICE 1
42#define DATA2ARG(data) data, sizeof (data) 41#define DATA2ARG(data) data, sizeof (data)
43 42
44/** 43/**
@@ -763,7 +762,7 @@ core_connected (void *cls, const struct GNUNET_PeerIdentity *my_identity)
763 * @param peer handle to access more of the peer (not used) 762 * @param peer handle to access more of the peer (not used)
764 */ 763 */
765void 764void
766#if DEBUG_SERVICE 765#if DEBUG_TEST_SOCIAL
767run (void *cls, char *const *args, const char *cfgfile, 766run (void *cls, char *const *args, const char *cfgfile,
768 const struct GNUNET_CONFIGURATION_Handle *c) 767 const struct GNUNET_CONFIGURATION_Handle *c)
769#else 768#else
@@ -790,7 +789,7 @@ int
790main (int argc, char *argv[]) 789main (int argc, char *argv[])
791{ 790{
792 res = 1; 791 res = 1;
793#if DEBUG_SERVICE 792#if DEBUG_TEST_SOCIAL
794 const struct GNUNET_GETOPT_CommandLineOption opts[] = { 793 const struct GNUNET_GETOPT_CommandLineOption opts[] = {
795 GNUNET_GETOPT_OPTION_END 794 GNUNET_GETOPT_OPTION_END
796 }; 795 };