From 367fa6384f7bde144a04ae72b8a7a6663fe20567 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 7 Mar 2023 11:54:10 +1000 Subject: [PATCH] test: fix the LD_LIBRARY_PATH to liboeffis Make this dependent on liboeffis directly instead of hardcoding where it should be. --- meson.build | 1 + test/meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 811758f..2bfeaac 100644 --- a/meson.build +++ b/meson.build @@ -5,6 +5,7 @@ project('libei', 'c', meson_version: '>= 0.57.0') pkgconfig = import('pkgconfig') +fs = import('fs') cc = meson.get_compiler('c') cflags =[ diff --git a/test/meson.build b/test/meson.build index 33aa14a..18f3baa 100644 --- a/test/meson.build +++ b/test/meson.build @@ -51,7 +51,7 @@ if build_oeffis dependencies: deps_liboeffis + [dep_unittest])) env = environment() - env.set('LD_LIBRARY_PATH', meson.project_build_root()) + env.set('LD_LIBRARY_PATH', fs.parent(lib_liboeffis.full_path())) pymod = import('python') pymod.find_installation('python3', modules: ['pytest', 'attr', 'dbusmock']) pytest = find_program('pytest-3', 'pytest')