aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_quota_compliance.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_quota_compliance.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_quota_compliance.c')
-rw-r--r--src/core/test_core_quota_compliance.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c
index 61fe21626..88a915095 100644
--- a/src/core/test_core_quota_compliance.c
+++ b/src/core/test_core_quota_compliance.c
@@ -570,10 +570,13 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message)
570static void 570static void
571setup_peer (struct PeerContext *p, const char *cfgname) 571setup_peer (struct PeerContext *p, const char *cfgname)
572{ 572{
573 char *binary;
574
575 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm");
573 p->cfg = GNUNET_CONFIGURATION_create (); 576 p->cfg = GNUNET_CONFIGURATION_create ();
574#if START_ARM 577#if START_ARM
575 p->arm_proc = 578 p->arm_proc =
576 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, "gnunet-service-arm", 579 GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, binary,
577 "gnunet-service-arm", 580 "gnunet-service-arm",
578 "-c", cfgname, NULL); 581 "-c", cfgname, NULL);
579#endif 582#endif
@@ -583,6 +586,7 @@ setup_peer (struct PeerContext *p, const char *cfgname)
583 p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL); 586 p->th = GNUNET_TRANSPORT_connect (p->cfg, NULL, p, NULL, NULL, NULL);
584 GNUNET_assert (p->th != NULL); 587 GNUNET_assert (p->th != NULL);
585 p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p); 588 p->ghh = GNUNET_TRANSPORT_get_hello (p->th, &process_hello, p);
589 GNUNET_free (binary);
586} 590}
587 591
588 592