From 85630bc9752369a9ab49337d1f98532d0cb6a4bb Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 12 Jun 2024 12:50:00 +0200 Subject: [PATCH] tests: fix tests when used as subproject `meson.source_root()` will return the source root of the parent project, not the current project when it's used as subproject. --- tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index 8e51a47..8a5a634 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1 +1 @@ -test('tests', py, args: ['-m', 'unittest'], workdir: meson.source_root()) +test('tests', py, args: ['-m', 'unittest'], workdir: meson.project_source_root())