diff options
Diffstat (limited to 'src/hostlist/test_gnunet_daemon_hostlist.c')
-rw-r--r-- | src/hostlist/test_gnunet_daemon_hostlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c index 6e9f31a20..5602609ae 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist.c +++ b/src/hostlist/test_gnunet_daemon_hostlist.c | |||
@@ -131,9 +131,12 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message) | |||
131 | static void | 131 | static void |
132 | setup_peer (struct PeerContext *p, const char *cfgname) | 132 | setup_peer (struct PeerContext *p, const char *cfgname) |
133 | { | 133 | { |
134 | char *binary; | ||
135 | |||
136 | binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm"); | ||
134 | p->cfg = GNUNET_CONFIGURATION_create (); | 137 | p->cfg = GNUNET_CONFIGURATION_create (); |
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 | "-c", cfgname, NULL); | 141 | "-c", cfgname, NULL); |
139 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 142 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
@@ -141,6 +144,7 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
141 | GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, ¬ify_connect, NULL); | 144 | GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, ¬ify_connect, NULL); |
142 | GNUNET_assert (p->th != NULL); | 145 | GNUNET_assert (p->th != NULL); |
143 | p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); | 146 | p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); |
147 | GNUNET_free (binary); | ||
144 | } | 148 | } |
145 | 149 | ||
146 | 150 | ||