summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2018-09-20 15:25:35 +0300
committerClaudio Saavedra <csaavedra@igalia.com>2019-01-11 12:46:28 +0200
commit150cef0be29f54b6111dc0925ad5ea24042a87d5 (patch)
tree4ba982a854d4978498fe23731b0eca3572c1ec1a
parentbe3921c239d10efa845bd24d8c61266ae92ecb13 (diff)
downloadlibsoup-150cef0be29f54b6111dc0925ad5ea24042a87d5.tar.gz
meson: make sure tests run against the built library
For some reason meson is honoring the LD_LIBRARY_PATH when running the tests, so the built library is not tested. Add this for now to work it around. See https://github.com/mesonbuild/meson/issues/4228
-rw-r--r--tests/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index afd97566..8176f29b 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -96,6 +96,8 @@ endif
env = environment()
env.set('G_TEST_SRCDIR', meson.current_source_dir())
env.set('G_TEST_BUILDDIR', meson.current_build_dir())
+# See https://github.com/mesonbuild/meson/issues/4228 for the workaround below
+env.prepend('LD_LIBRARY_PATH', meson.build_root() + '/libsoup')
env.set('G_DEBUG', 'gc-friendly')
env.set('MALLOC_CHECK_', '2')
# This is set by Meson if empty