diff options
Diffstat (limited to 'src/util/test_resolver_api.c')
-rw-r--r-- | src/util/test_resolver_api.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index b9ca81b0f..ea18629f4 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c | |||
@@ -22,11 +22,7 @@ | |||
22 | * @brief testcase for resolver_api.c | 22 | * @brief testcase for resolver_api.c |
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_common.h" | 25 | #include "gnunet_util_lib.h" |
26 | #include "gnunet_getopt_lib.h" | ||
27 | #include "gnunet_os_lib.h" | ||
28 | #include "gnunet_program_lib.h" | ||
29 | #include "gnunet_scheduler_lib.h" | ||
30 | #include "gnunet_resolver_service.h" | 26 | #include "gnunet_resolver_service.h" |
31 | #include "resolver.h" | 27 | #include "resolver.h" |
32 | 28 | ||
@@ -356,7 +352,6 @@ main (int argc, char *argv[]) | |||
356 | { | 352 | { |
357 | int ok = 1 + 2 + 4 + 8; | 353 | int ok = 1 + 2 + 4 + 8; |
358 | char *fn; | 354 | char *fn; |
359 | char *pfx; | ||
360 | struct GNUNET_OS_Process *proc; | 355 | struct GNUNET_OS_Process *proc; |
361 | char *const argvx[] = { | 356 | char *const argvx[] = { |
362 | "test-resolver-api", "-c", "test_resolver_api_data.conf", NULL | 357 | "test-resolver-api", "-c", "test_resolver_api_data.conf", NULL |
@@ -367,10 +362,11 @@ main (int argc, char *argv[]) | |||
367 | GNUNET_log_setup ("test-resolver-api", | 362 | GNUNET_log_setup ("test-resolver-api", |
368 | "WARNING", | 363 | "WARNING", |
369 | NULL); | 364 | NULL); |
370 | pfx = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_BINDIR); | 365 | fn = GNUNET_OS_get_libexec_binary_path ("gnunet-service-resolver"); |
371 | GNUNET_asprintf (&fn, "%s%cgnunet-service-resolver", pfx, DIR_SEPARATOR); | 366 | proc = GNUNET_OS_start_process (GNUNET_YES, |
372 | GNUNET_free (pfx); | 367 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, |
373 | proc = GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_OUT_AND_ERR, NULL, NULL, fn, "gnunet-service-resolver", | 368 | NULL, NULL, fn, |
369 | "gnunet-service-resolver", | ||
374 | "-c", "test_resolver_api_data.conf", NULL); | 370 | "-c", "test_resolver_api_data.conf", NULL); |
375 | GNUNET_assert (NULL != proc); | 371 | GNUNET_assert (NULL != proc); |
376 | GNUNET_free (fn); | 372 | GNUNET_free (fn); |