Add test case for empty fields

Make sure we don't run into the bug fixed by 6a27c57 again.
This commit is contained in:
Tollef Fog Heen 2010-05-27 22:23:40 +02:00
parent 6a27c57057
commit 4c6ff1c3d5
3 changed files with 20 additions and 2 deletions

View file

@ -11,5 +11,9 @@ set -e
ARGS="--cflags simple"
RESULT=""
run_test
ARGS="--cflags fields-blank"
RESULT=""
run_test

View file

@ -15,5 +15,8 @@ if [ "$list_indirect_deps" = "yes" ]; then
else
RESULT="-lsimple"
fi
run_test
ARGS="--libs fields-blank"
RESULT=""
run_test

11
check/fields-blank.pc Normal file
View file

@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Simple test
Description: Dummy pkgconfig test package for testing pkgconfig
Version: 1.0.0
Requires:
Libs:
Cflags: