summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorMarek Kasik <mkasik@redhat.com>2013-08-08 16:20:20 +0200
committerDan Nicholson <dbn.lists@gmail.com>2013-09-15 10:27:35 -0700
commit50c2867f4a6981e085c721d936c96f174f11f415 (patch)
treed2814ea24a43638795c7137c3dd06cced7f455ac /check
parentf26a505826acec6b1e1af8d1efdf959913421c3a (diff)
downloadpkg-config-50c2867f4a6981e085c721d936c96f174f11f415.tar.gz
Unquote values of requested variables
If a --variable is requested, make sure to remove the quoting since it's likely the value will be used verbatim in shell command substitution. If the quotes remain in the value, they'd get embedded in the shell variable, too. Freedesktop #67904 (https://bugs.freedesktop.org/show_bug.cgi?id=67904)
Diffstat (limited to 'check')
-rwxr-xr-xcheck/check-whitespace4
1 files changed, 4 insertions, 0 deletions
diff --git a/check/check-whitespace b/check/check-whitespace
index e4388ba..b062bc0 100755
--- a/check/check-whitespace
+++ b/check/check-whitespace
@@ -4,6 +4,10 @@ set -e
. ${srcdir}/common
+# variables come out unquoted
+RESULT='/usr/white space/include'
+run_test --variable=includedir whitespace
+
# expect cflags from whitespace
RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir'
run_test --cflags whitespace