[libsoup/hsts: 70/101] meson: make sure tests run against the built library



commit 4474894ec2a9e231b34188858f45299a6372e675
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Sep 20 15:25:35 2018 +0300

    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.

 tests/meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/meson.build b/tests/meson.build
index 3ddd9707..38e1c133 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -96,6 +96,7 @@ endif
 env = environment()
 env.set('G_TEST_SRCDIR', meson.current_source_dir())
 env.set('G_TEST_BUILDDIR', meson.current_build_dir())
+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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]