diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-15 01:11:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-15 01:11:29 +0300 |
commit | 398b8efd28b3ff8f14ead0bd272eb29ea546483e (patch) | |
tree | 0ce5947ec1ecc12966ce3671e8c78ae41cadbc58 /libpkgconf/tests/api/driver.c | |
parent | 31aa6309f18fd363094b271e09b629d5eaa0f72e (diff) |
Release version 1.6.3+1v1.6.3+1
Drop copyright notice from source code
Add 'merge fragments' test
Diffstat (limited to 'libpkgconf/tests/api/driver.c')
-rw-r--r-- | libpkgconf/tests/api/driver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libpkgconf/tests/api/driver.c b/libpkgconf/tests/api/driver.c index b5e42f3..57f989d 100644 --- a/libpkgconf/tests/api/driver.c +++ b/libpkgconf/tests/api/driver.c @@ -1,5 +1,4 @@ /* file : tests/api/driver.c - * copyright : Copyright (c) 2016-2019 Code Synthesis Ltd * license : ISC; see accompanying COPYING file */ @@ -40,7 +39,7 @@ frags_print_and_free (pkgconf_list_t* list) PKGCONF_FOREACH_LIST_ENTRY(list->head, node) { pkgconf_fragment_t* frag = node->data; - printf("%c %s\n", frag->type, frag->data); + printf("%c %s\n", frag->type != '\0' ? frag->type : ' ', frag->data); } pkgconf_fragment_free (list); @@ -155,12 +154,17 @@ main (int argc, const char* argv[]) } case dump_libs: { + pkgconf_client_set_flags (c, + PKGCONF_PKG_PKGF_SEARCH_PRIVATE | + PKGCONF_PKG_PKGF_MERGE_PRIVATE_FRAGMENTS); + pkgconf_list_t list = PKGCONF_LIST_INITIALIZER; e = pkgconf_pkg_libs (c, p, &list, max_depth); if (e == PKGCONF_PKG_ERRF_OK) frags_print_and_free (&list); + pkgconf_client_set_flags (c, 0); /* Restore. */ break; } case dump_vars: |