aboutsummaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-26 13:47:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-26 18:26:28 +0300
commit95fee14dfa5bd3896c510077af36ea371a9a2975 (patch)
treeb1a85ba6ab458731e3aeba30efc645c7b2a50225 /tests/api
parent9be7ac171fba73340e2974ff7ba55739a7ca81fb (diff)
Merge with 1.5.4 upstream package version
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