testsuite: add a test for #99

pull/100/head
William Pitcock 2016-10-25 14:03:08 -05:00
parent a05cc65a4b
commit 9a89bd051d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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" \