summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-06-09 12:03:14 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-28 13:19:02 +0300
commit11bdfce31e7e1889214f9191a9d910e973827823 (patch)
treec869a4a1adb705e07f0f44583a5ce2daf61c4290 /tests
parent2409371e084c6f34e21b27e533ee7d6feca3f471 (diff)
meson: use environment() objects to define env for tests
it's just a nicer syntax Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 12771c0..c8a8249 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,8 +1,8 @@
common_deps = [icipc_dep, glib_dep]
-common_env = [
- 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
-]
+common_env = environment({
+ 'G_TEST_SRCDIR': meson.current_source_dir(),
+ 'G_TEST_BUILDDIR': meson.current_build_dir(),
+})
test(
'test-icipc-sender-receiver',