mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-01-02 14:20:07 +01:00
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:
parent
5345892b8e
commit
d11df7ffe0
1 changed files with 3 additions and 2 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue