From b88808f708fd7dcf87c7ed48af62e1b58dff2988 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Thu, 10 Sep 2015 16:36:07 -0700 Subject: [PATCH] Test escaped space in a library name --- tests/lib1/quotes.pc | 2 +- tests/run.sh.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib1/quotes.pc b/tests/lib1/quotes.pc index bb1282f..b834816 100644 --- a/tests/lib1/quotes.pc +++ b/tests/lib1/quotes.pc @@ -6,5 +6,5 @@ includedir=${prefix}/include Name: quotes Description: A testing pkg-config file Version: 1.2.3 -Libs: -L${libdir} -lfoo +Libs: -L${libdir} -lfoo\ bar Cflags: -DQUOTED=\"bla\" diff --git a/tests/run.sh.in b/tests/run.sh.in index c971513..411f4c7 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -220,6 +220,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --list-all | grep -q 'multiline # test quoted #35 run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags quotes" \ "-DQUOTED=\\\"bla\\\"" +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs quotes" \ + '-lfoo\ bar' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs nolib; echo \$?" \ '0'