aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/test_core_api_start_only.c')
-rw-r--r--src/core/test_core_api_start_only.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index a502fce6d..d9cb4150d 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -137,12 +137,18 @@ init_notify (void *cls, struct GNUNET_CORE_Handle *server,
137static void 137static void
138setup_peer (struct PeerContext *p, const char *cfgname) 138setup_peer (struct PeerContext *p, const char *cfgname)
139{ 139{
140 char *binary;
141
142 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm");
140 p->cfg = GNUNET_CONFIGURATION_create (); 143 p->cfg = GNUNET_CONFIGURATION_create ();
141 p->arm_proc = 144 p->arm_proc =
142 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", 145 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR,
143 "gnunet-service-arm", 146 NULL, NULL,
144 "-c", cfgname, NULL); 147 binary,
148 "gnunet-service-arm",
149 "-c", cfgname, NULL);
145 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 150 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
151 GNUNET_free (binary);
146} 152}
147 153
148 154