From ae7faf73fd48fde8079ce37e9ef1f7c58d45bb1e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 14 Jun 2018 16:11:21 -0500 Subject: [PATCH] tests: add testcase for tuple dequoting bug (legacy github bug #186) --- tests/lib1/tuple-quoting.pc | 2 +- tests/parser.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/lib1/tuple-quoting.pc b/tests/lib1/tuple-quoting.pc index 265187b..666ba4a 100644 --- a/tests/lib1/tuple-quoting.pc +++ b/tests/lib1/tuple-quoting.pc @@ -1,4 +1,4 @@ -prefix="/usr" +prefix="/test" libdir=${prefix}/lib Name: tuple-quoting diff --git a/tests/parser.sh b/tests/parser.sh index d48c699..9e0614c 100755 --- a/tests/parser.sh +++ b/tests/parser.sh @@ -29,7 +29,8 @@ tests_init \ fragment_quoting_5 \ fragment_quoting_7 \ msvc_fragment_quoting \ - msvc_fragment_render_cflags + msvc_fragment_render_cflags \ + tuple_dequote comments_body() { @@ -266,3 +267,10 @@ msvc_fragment_render_cflags_body() -o inline:'/I/test/include/foo /DFOO_STATIC \n' \ pkgconf --cflags --static --msvc-syntax foo } + +tuple_dequote_body() +{ + atf_check \ + -o inline:'-L/test/lib -lfoo \n' \ + pkgconf --with-path="${selfdir}/lib1" --libs tuple-quoting +}