The `libnm_linking` test that belongs to the libnm-util's general
tests is failing because the test is not able to find the
`test-libnm-linking` binary, which is executed as a child process.

The problem lies to the `BUILD_DIR` macro definition which is
used to set the place to find the binary, and is wrongly defined
with the source directory.

This patch changes its value to the build directory that fixes
the problem.
---
 libnm-util/tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libnm-util/tests/meson.build b/libnm-util/tests/meson.build
index 387b0db92..8a05bc88c 100644
--- a/libnm-util/tests/meson.build
+++ b/libnm-util/tests/meson.build
@@ -11,7 +11,7 @@ deps = [
 ]
 
 cflags = [
-  '-DBUILD_DIR="@0@"'.format(meson.current_source_dir()),
+  '-DBUILD_DIR="@0@"'.format(meson.current_build_dir()),
   '-DTEST_CERT_DIR="@0@"'.format(test_cert_dir)
 ]
 
-- 
2.15.1

_______________________________________________
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to