summaryrefslogtreecommitdiff
path: root/check/check-includedir
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-09-29 08:50:57 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-09-29 08:50:57 -0700
commit397d414a6a6db328c610b0691fd0ce79e081eb99 (patch)
tree79b637095f7146e0dbe9746ceeac1f67a42eb401 /check/check-includedir
parente68baa746395f4d5c7b8ab16093c044026b2d1fd (diff)
downloadpkg-config-397d414a6a6db328c610b0691fd0ce79e081eb99.tar.gz
check: Pass args to test function instead of setting in variable
The run_test shell function was running pkg-config with arguments stored in an environment variable. This has problems when trying to pass shell special characters with the proper escaping. Instead, pass the arguments to the test where they can maintain correct formatting through use of the special variable "$@".
Diffstat (limited to 'check/check-includedir')
-rwxr-xr-xcheck/check-includedir4
1 files changed, 1 insertions, 3 deletions
diff --git a/check/check-includedir b/check/check-includedir
index 26d8ab5..d05cd9d 100755
--- a/check/check-includedir
+++ b/check/check-includedir
@@ -4,7 +4,5 @@ set -e
. ${srcdir}/common
-ARGS="--cflags includedir"
RESULT="-I/usr/include/somedir"
-
-run_test
+run_test --cflags includedir