G_MESSAGES_DEBUG=all causes test suite to fail
Normally meson test
in the Mutter build directory works fine and all tests pass. However, if one sets:
export G_MESSAGES_DEBUG=all
and runs meson test
again, you see these failures:
27/29 mutter/stacking FAIL 0.42 s (exit status 1)
28/29 mutter/unit FAIL 0.47 s (killed by signal 5 SIGTRAP)
A workaround that fixes this:
diff --git a/src/tests/test-utils.c b/src/tests/test-utils.c
index 980b20acd..e3b941d1e 100644
--- a/src/tests/test-utils.c
+++ b/src/tests/test-utils.c
@@ -398,6 +398,7 @@ test_client_new (const char *id,
g_subprocess_launcher_setenv (launcher,
"DISPLAY", x11_display_name,
TRUE);
+ g_subprocess_launcher_unsetenv (launcher, "G_MESSAGES_DEBUG");
subprocess = g_subprocess_launcher_spawn (launcher,
error,