From 749a604c70cae0fb0c94e99743fa16bcd64c7dce Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 2 Sep 2012 17:34:44 -0500 Subject: [PATCH] tests: add test for freedesktop.org bug 54271 --- tests/lib1/incomplete.pc | 4 ++++ tests/run.sh.in | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 tests/lib1/incomplete.pc diff --git a/tests/lib1/incomplete.pc b/tests/lib1/incomplete.pc new file mode 100644 index 0000000..40f0d91 --- /dev/null +++ b/tests/lib1/incomplete.pc @@ -0,0 +1,4 @@ +Name: incomplete +Description: incomplete package without CFLAGS/LIBS entries (freedesktop #54271) +Version: 1.2.3 + diff --git a/tests/run.sh.in b/tests/run.sh.in index 9b10d65..46bd9ed 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -114,6 +114,8 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs-only-L --libs-only-l cflag '-lfoo' run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --cflags-only-I --cflags-only-other cflags-libs-only" \ '-I/usr/local/include' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs incomplete; echo $?" \ + '0' # 6) tests for builtins run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --modversion pkg-config" \