diff options
author | <wachs@net.in.tum.de> | 2013-04-12 11:35:15 +0000 |
---|---|---|
committer | <wachs@net.in.tum.de> | 2013-04-12 11:35:15 +0000 |
commit | d1069706dea6c8de21ca118d45a5f117364b1fda (patch) | |
tree | de2a3462e6acb51378f951e7d5369f1004b6f75e | |
parent | bb37c10f30f25778f1ca1aef005bcf0a89043709 (diff) | |
download | gnunet-ext-d1069706dea6c8de21ca118d45a5f117364b1fda.tar.gz gnunet-ext-d1069706dea6c8de21ca118d45a5f117364b1fda.zip |
fix(fix)
-rw-r--r-- | src/ext/test_ext_api.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ext/test_ext_api.c b/src/ext/test_ext_api.c index 9f2a547..03cee05 100644 --- a/src/ext/test_ext_api.c +++ b/src/ext/test_ext_api.c | |||
@@ -47,11 +47,18 @@ check () | |||
47 | GNUNET_GETOPT_OPTION_END | 47 | GNUNET_GETOPT_OPTION_END |
48 | }; | 48 | }; |
49 | struct GNUNET_OS_Process *proc; | 49 | struct GNUNET_OS_Process *proc; |
50 | 50 | char *path = GNUNET_OS_get_libexec_binary_path ( "gnunet-service-ext"); | |
51 | if (NULL == path) | ||
52 | { | ||
53 | fprintf (stderr, "Service executable not found `%s'\n", "gnunet-service-ext"); | ||
54 | return; | ||
55 | } | ||
51 | proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, | 56 | proc = GNUNET_OS_start_process (GNUNET_NO, GNUNET_OS_INHERIT_STD_ALL, NULL, NULL, |
52 | GNUNET_OS_get_libexec_binary_path ( "gnunet-service-ext"), | 57 | path, |
53 | "gnunet-service-ext", | 58 | "gnunet-service-ext", |
54 | NULL); | 59 | NULL); |
60 | |||
61 | GNUNET_free (path); | ||
55 | GNUNET_assert (NULL != proc); | 62 | GNUNET_assert (NULL != proc); |
56 | GNUNET_PROGRAM_run (1, argv, "test-ext-api", "nohelp", | 63 | GNUNET_PROGRAM_run (1, argv, "test-ext-api", "nohelp", |
57 | options, &run, &ok); | 64 | options, &run, &ok); |