aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-29 16:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-29 16:14:03 +0000
commitbcbcf005b4864ac5557c31da10521126d8880849 (patch)
tree444cafefb16e1c5a4ba13ce2db07d6ec1f37675e /src/core/test_core_api_start_only.c
parent119193d6350bbbd8c6ecbd60ccc8301223d6f6d6 (diff)
downloadgnunet-bcbcf005b4864ac5557c31da10521126d8880849.tar.gz
gnunet-bcbcf005b4864ac5557c31da10521126d8880849.zip
installing all service, daemon and helper binaries to lib/gnunet/libexec/; updating code to run binaries from new location, which is no longer in PATH
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