summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-10-20 14:56:36 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-10-20 14:56:36 +0800
commitff463f8692eb33c5b8a1287e120ea2a966241731 (patch)
tree2f21ffdf965c89795f72959416138ddf1ca585c0
parentbeed3a05f77654cde82ab1d9cfef335c702525d8 (diff)
downloadclutter-ff463f8692eb33c5b8a1287e120ea2a966241731.tar.gz
tests/conform: Don't set x11 backend unconditionally
We may not be running the tests on an X11-based system
-rw-r--r--tests/conform/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/conform/meson.build b/tests/conform/meson.build
index a8da1b398..25c03c794 100644
--- a/tests/conform/meson.build
+++ b/tests/conform/meson.build
@@ -6,11 +6,14 @@ test_cflags = [
test_env = [
'G_ENABLE_DIAGNOSTIC=0',
'CLUTTER_ENABLE_DIAGNOSTIC=0',
- 'CLUTTER_BACKEND=x11',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
]
+if enabled_backends.contains('x11')
+ test_env += 'CLUTTER_BACKEND=x11'
+endif
+
actor_tests = [
'actor-anchors',
'actor-destroy',