tests: regress: add malformed quoting test

feature/tap-sh
William Pitcock 2017-09-19 21:35:18 -05:00
parent 7786554be2
commit 72cf871421
3 changed files with 12 additions and 0 deletions

View File

@ -80,6 +80,7 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/fragment-quoting-6.pc \ tests/lib1/fragment-quoting-6.pc \
tests/lib1/fragment-quoting-7.pc \ tests/lib1/fragment-quoting-7.pc \
tests/lib1/malformed-1.pc \ tests/lib1/malformed-1.pc \
tests/lib1/malformed-quoting.pc \
tests/lib1/explicit-sysroot.pc \ tests/lib1/explicit-sysroot.pc \
tests/test_env.sh \ tests/test_env.sh \
$(test_scripts) \ $(test_scripts) \

View File

@ -0,0 +1,4 @@
Name: malformed-quoting
Version: 1
Description: None.
Cflags: '-I/ABC

View File

@ -27,6 +27,7 @@ tests_init \
virtual_variable \ virtual_variable \
fragment_collision \ fragment_collision \
malformed_1 \ malformed_1 \
malformed_quoting \
explicit_sysroot explicit_sysroot
case_sensitivity_body() case_sensitivity_body()
@ -233,6 +234,12 @@ malformed_1_body()
pkgconf --validate --with-path="${selfdir}/lib1" malformed-1 pkgconf --validate --with-path="${selfdir}/lib1" malformed-1
} }
malformed_quoting_body()
{
atf_check -s exit:0 -o ignore \
pkgconf --validate --with-path="${selfdir}/lib1" malformed-quoting
}
explicit_sysroot_body() explicit_sysroot_body()
{ {
export PKG_CONFIG_SYSROOT_DIR=/sysroot export PKG_CONFIG_SYSROOT_DIR=/sysroot