aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_reliability.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_reliability.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_reliability.c')
-rw-r--r--src/core/test_core_api_reliability.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c
index d4afbc27d..dd70d438a 100644
--- a/src/core/test_core_api_reliability.c
+++ b/src/core/test_core_api_reliability.c
@@ -426,10 +426,13 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message)
426static void 426static void
427setup_peer (struct PeerContext *p, const char *cfgname) 427setup_peer (struct PeerContext *p, const char *cfgname)
428{ 428{
429 char *binary;
430
431 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm");
429 p->cfg = GNUNET_CONFIGURATION_create (); 432 p->cfg = GNUNET_CONFIGURATION_create ();
430#if START_ARM 433#if START_ARM
431 p->arm_proc = 434 p->arm_proc =
432 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", 435 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, binary,
433 "gnunet-service-arm", 436 "gnunet-service-arm",
434 "-c", cfgname, NULL); 437 "-c", cfgname, NULL);
435#endif 438#endif
@@ -437,6 +440,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
437 p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL); 440 p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL);
438 GNUNET_assert (p->th != NULL); 441 GNUNET_assert (p->th != NULL);
439 p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); 442 p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p);
443 GNUNET_free (binary);
440} 444}
441 445
442 446