aboutsummaryrefslogtreecommitdiff
path: root/unittests/helpers.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-11-17 02:08:11 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-11-17 19:10:51 -0500
commitb40e4de3c6cfd931a2c0d9ba8b798bfacd3662c6 (patch)
tree1483c034d71e53e15e9ef143212209936e51a8ab /unittests/helpers.py
parent908a78dbc249b8f9db5d5404ccd08809ea1964ef (diff)
downloadmeson-b40e4de3c6cfd931a2c0d9ba8b798bfacd3662c6.zip
meson-b40e4de3c6cfd931a2c0d9ba8b798bfacd3662c6.tar.gz
meson-b40e4de3c6cfd931a2c0d9ba8b798bfacd3662c6.tar.bz2
tests: fix potential failure to verify pkg-config generation
We use a dummy project with a vague name and try to find flags for it based on the installable pkg-config files. This sort of works, generally, because it attempts to match `-lct` which doesn't exist because the test case isn't installed, and that link argument is passed directly through. Except, sometimes that library does exist. It is provided by the "freetds" project, which may be a dependency other tools. In that case, Meson finds a library, and the `dependency()` resolves to `/usr/lib/libct.so` and the test fails. Fortunately, we do have an API to say that we really want to get back the same flags pkg-config returned. Use this.
Diffstat (limited to 'unittests/helpers.py')
0 files changed, 0 insertions, 0 deletions