aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/api/driver.c4
-rw-r--r--tests/api/testscript14
-rw-r--r--tests/basic/driver.c6
3 files changed, 17 insertions, 7 deletions
diff --git a/tests/api/driver.c b/tests/api/driver.c
index b020bee..219549d 100644
--- a/tests/api/driver.c
+++ b/tests/api/driver.c
@@ -122,7 +122,9 @@ main (int argc, const char* argv[])
assert (n > 3 && strcmp (path + n - 3, ".pc") == 0);
pkgconf_client_t* c =
- pkgconf_client_new (error_handler, NULL /* error_handler_data */);
+ pkgconf_client_new (error_handler,
+ NULL /* error_handler_data */,
+ pkgconf_cross_personality_default ());
assert (c != NULL);
diff --git a/tests/api/testscript b/tests/api/testscript
index 7e20361..322a12d 100644
--- a/tests/api/testscript
+++ b/tests/api/testscript
@@ -8,6 +8,7 @@
+cat <<EOI >=libfoo.pc
prefix="C:\\Program Files\\Foo"
exec_prefix=${prefix}
+ var="A\"B" 'C\'D'
Name: libfoo
Description: Foo library
Version: 1.0
@@ -33,8 +34,9 @@
: vars
:
$* --vars $f >>EOO
- exec_prefix "C:\\Program Files\\Foo"
- prefix "C:\\Program Files\\Foo"
+ var A"B 'C\'D'
+ exec_prefix C:\\Program Files\\Foo
+ prefix C:\\Program Files\\Foo
EOO
}
@@ -43,6 +45,7 @@
+cat <<EOI >=libfoo.pc
prefix='C:\Program Files\Foo'
exec_prefix=${prefix}
+ var='A\'B' "C\"D"
Name: libfoo
Description: Foo library
Version: 1.0
@@ -68,8 +71,9 @@
: vars
:
$* --vars $f >>EOO
- exec_prefix 'C:\Program Files\Foo'
- prefix 'C:\Program Files\Foo'
+ var A'B "C\"D"
+ exec_prefix C:\Program Files\Foo
+ prefix C:\Program Files\Foo
EOO
}
@@ -79,6 +83,7 @@
+cat <<EOI >=libfoo.pc
prefix=C:\\Program\ \ \ Files\\Foo
exec_prefix=${prefix}
+ var=X A\'B' "C\"D"
Name: libfoo
Description: Foo library
Version: 1.0
@@ -104,6 +109,7 @@
: vars
:
$* --vars $f >>EOO
+ var X A\'B' "C\"D"
exec_prefix C:\\Program\ \ \ Files\\Foo
prefix C:\\Program\ \ \ Files\\Foo
EOO
diff --git a/tests/basic/driver.c b/tests/basic/driver.c
index 888a862..0e733c9 100644
--- a/tests/basic/driver.c
+++ b/tests/basic/driver.c
@@ -67,7 +67,9 @@ int
main (int argc, const char* argv[])
{
pkgconf_client_t* c =
- pkgconf_client_new (error_handler, NULL /* error_handler_data */);
+ pkgconf_client_new (error_handler,
+ NULL /* error_handler_data */,
+ pkgconf_cross_personality_default ());
assert (c != NULL);
@@ -112,7 +114,7 @@ main (int argc, const char* argv[])
* Bootstrap the package search default paths if not specified explicitly.
*/
if (default_dirs)
- pkgconf_pkg_dir_list_build (c);
+ pkgconf_client_dir_list_build (c, pkgconf_cross_personality_default ());
pkgconf_pkg_t* p = pkgconf_pkg_find (c, name);