diff options
Diffstat (limited to 'src/chat/test_chat_private.c')
-rw-r--r-- | src/chat/test_chat_private.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/chat/test_chat_private.c b/src/chat/test_chat_private.c index ec170a1dd..64150c107 100644 --- a/src/chat/test_chat_private.c +++ b/src/chat/test_chat_private.c | |||
@@ -124,23 +124,24 @@ static int bob_ready; | |||
124 | 124 | ||
125 | static int is_p2p; | 125 | static int is_p2p; |
126 | 126 | ||
127 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *bob_public_key = NULL; | 127 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *bob_public_key; |
128 | 128 | ||
129 | 129 | ||
130 | static void | 130 | static void |
131 | setup_peer (struct PeerContext *p, const char *cfgname) | 131 | setup_peer (struct PeerContext *p, const char *cfgname) |
132 | { | 132 | { |
133 | char *binary; | ||
134 | |||
135 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); | ||
133 | p->cfg = GNUNET_CONFIGURATION_create (); | 136 | p->cfg = GNUNET_CONFIGURATION_create (); |
134 | #if START_ARM | 137 | #if START_ARM |
135 | p->arm_proc = | 138 | p->arm_proc = |
136 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", | 139 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, binary, |
137 | "gnunet-service-arm", | 140 | "gnunet-service-arm", |
138 | #if VERBOSE | ||
139 | "-L", "DEBUG", | ||
140 | #endif | ||
141 | "-c", cfgname, NULL); | 141 | "-c", cfgname, NULL); |
142 | #endif | 142 | #endif |
143 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 143 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
144 | GNUNET_free (binary); | ||
144 | } | 145 | } |
145 | 146 | ||
146 | 147 | ||
@@ -614,9 +615,6 @@ main (int argc, char *argv[]) | |||
614 | "test-chat", | 615 | "test-chat", |
615 | "-c", | 616 | "-c", |
616 | "test_chat_data.conf", | 617 | "test_chat_data.conf", |
617 | #if VERBOSE | ||
618 | "-L", "DEBUG", | ||
619 | #endif | ||
620 | NULL | 618 | NULL |
621 | }; | 619 | }; |
622 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 620 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
@@ -624,11 +622,7 @@ main (int argc, char *argv[]) | |||
624 | }; | 622 | }; |
625 | 623 | ||
626 | GNUNET_log_setup ("test_chat", | 624 | GNUNET_log_setup ("test_chat", |
627 | #if VERBOSE | ||
628 | "DEBUG", | ||
629 | #else | ||
630 | "WARNING", | 625 | "WARNING", |
631 | #endif | ||
632 | NULL); | 626 | NULL); |
633 | if (strstr (argv[0], "p2p") != NULL) | 627 | if (strstr (argv[0], "p2p") != NULL) |
634 | { | 628 | { |