diff --git a/tests/lib1/cflags-whitespace-trailing.pc b/tests/lib1/cflags-whitespace-trailing.pc new file mode 100644 index 0000000..2e66035 --- /dev/null +++ b/tests/lib1/cflags-whitespace-trailing.pc @@ -0,0 +1,4 @@ +Name: CFlags Trailing Whitespace Bug +Description: Demonstrates problems with -I with spaces +Version: 1 +Cflags: -I/usr/include -I/usr/include/foo diff --git a/tests/run.sh.in b/tests/run.sh.in index 79e9f6c..4af05c7 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -291,6 +291,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/test' ${1} run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/test' ${1} --cflags cflags-whitespace" \ "-I /test/opt/bad/include" +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSTEM_INCLUDE_PATH='/usr/include' ${1} --cflags cflags-whitespace-trailing" \ + "-I/usr/include/foo" # 10) tests for Provides system run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --print-provides provides" \