[mutter] context/test: Respect MUTTER_SYNC envvar
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] context/test: Respect MUTTER_SYNC envvar
- Date: Thu, 15 Jul 2021 12:40:53 +0000 (UTC)
commit 4cd1154b3d9fbd850d8fefcd275db7e2f1fa544b
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Mar 2 12:04:03 2021 +0100
context/test: Respect MUTTER_SYNC envvar
It just calls meta_set_syncing() accordingly. Is currently done by
meta_init() either when the env var is set, or when a command line
argument is passed.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
src/tests/meta-context-test.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/tests/meta-context-test.c b/src/tests/meta-context-test.c
index d798d55e45..c5897af2f5 100644
--- a/src/tests/meta-context-test.c
+++ b/src/tests/meta-context-test.c
@@ -91,6 +91,8 @@ meta_context_test_setup (MetaContext *context,
settings,
META_EXPERIMENTAL_FEATURE_SCALE_MONITOR_FRAMEBUFFER);
+ meta_set_syncing (!!g_getenv ("MUTTER_SYNC"));
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]