testsuite: add a test for #87

feature/tap-sh
William Pitcock 2016-05-19 16:47:11 -05:00
parent 7e6fa325eb
commit c6676e9de4
2 changed files with 8 additions and 0 deletions

4
tests/lib1/isystem.pc Normal file
View File

@ -0,0 +1,4 @@
Name: Bad
Description: Demonstrates problems with -isystem in both old pkg-config and current pkgconf; see also https://bugs.freedesktop.org/show_bug.cgi?id=72584
Version: 1
Cflags: -isystem /opt/bad/include -isystem /opt/bad2/include

View File

@ -240,6 +240,10 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-2" \
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-1 framework-2" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-1 framework-2" \
"-F/test/lib -framework framework-1 -framework framework-2" "-F/test/lib -framework framework-1 -framework framework-2"
# test 87 - -isystem munging
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags isystem" \
"-isystem /opt/bad/include -isystem /opt/bad2/include"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'foo > 0.6.0 foo < 0.8.0'; echo \$?" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'foo > 0.6.0 foo < 0.8.0'; echo \$?" \
'1' '1'