Ensure test search path is confined to check directory

If only PKG_CONFIG_PATH is set when running the tests, we'll still pick
up packages from the system default path. By overriding that with
PKG_CONFIG_LIBDIR and unsetting PKG_CONFIG_PATH, the path is forced to
the check directory.
This commit is contained in:
Dan Nicholson 2012-05-30 05:45:16 -07:00
parent 5345892b8e
commit d11df7ffe0

View file

@ -8,8 +8,9 @@ pkgconfig=../pkg-config
. ./config.sh
PKG_CONFIG_PATH=$srcdir
export PKG_CONFIG_PATH
unset PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR=$srcdir
export PKG_CONFIG_LIBDIR
export LC_ALL=C
run_test () {