From d11df7ffe030d8282d62fcc2727f609a85910f2a Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 30 May 2012 05:45:16 -0700 Subject: [PATCH] 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. --- check/common | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check/common b/check/common index 57aa806..5d1ae15 100644 --- a/check/common +++ b/check/common @@ -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 () {