mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 05:30:03 +01:00
Add test case for empty fields
Make sure we don't run into the bug fixed by 6a27c57 again.
This commit is contained in:
parent
6a27c57057
commit
4c6ff1c3d5
3 changed files with 20 additions and 2 deletions
|
|
@ -11,5 +11,9 @@ set -e
|
|||
|
||||
ARGS="--cflags simple"
|
||||
RESULT=""
|
||||
|
||||
run_test
|
||||
|
||||
ARGS="--cflags fields-blank"
|
||||
RESULT=""
|
||||
run_test
|
||||
|
||||
|
|
|
|||
|
|
@ -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
11
check/fields-blank.pc
Normal 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:
|
||||
Loading…
Add table
Reference in a new issue