From c6676e9de45e075aa819422027af8faa6e451dd8 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 19 May 2016 16:47:11 -0500 Subject: [PATCH] testsuite: add a test for #87 --- tests/lib1/isystem.pc | 4 ++++ tests/run.sh.in | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 tests/lib1/isystem.pc diff --git a/tests/lib1/isystem.pc b/tests/lib1/isystem.pc new file mode 100644 index 0000000..98416b5 --- /dev/null +++ b/tests/lib1/isystem.pc @@ -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 diff --git a/tests/run.sh.in b/tests/run.sh.in index 820c3d1..f40b5d5 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -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" \ "-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 \$?" \ '1'