aboutsummaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/driver.c4
-rw-r--r--tests/api/testscript14
2 files changed, 13 insertions, 5 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