From 4c6ff1c3d5dfe60a4f37c8ba11c080054101a3b0 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 27 May 2010 22:23:40 +0200 Subject: [PATCH] Add test case for empty fields Make sure we don't run into the bug fixed by 6a27c57 again. --- check/check-cflags | 6 +++++- check/check-libs | 5 ++++- check/fields-blank.pc | 11 +++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 check/fields-blank.pc diff --git a/check/check-cflags b/check/check-cflags index 9d517c8..eb2d6bc 100755 --- a/check/check-cflags +++ b/check/check-cflags @@ -11,5 +11,9 @@ set -e ARGS="--cflags simple" RESULT="" - run_test + +ARGS="--cflags fields-blank" +RESULT="" +run_test + diff --git a/check/check-libs b/check/check-libs index d124970..9b1b495 100755 --- a/check/check-libs +++ b/check/check-libs @@ -15,5 +15,8 @@ if [ "$list_indirect_deps" = "yes" ]; then else RESULT="-lsimple" fi - +run_test + +ARGS="--libs fields-blank" +RESULT="" run_test diff --git a/check/fields-blank.pc b/check/fields-blank.pc new file mode 100644 index 0000000..f56c810 --- /dev/null +++ b/check/fields-blank.pc @@ -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: