mutter/src
Jonas Ådahl 11d35f99be util: Make meta_topic() log using the debug level in tests
Some tests expect warnings to be logged, and handle that using
g_test_expect_message(). However, if debug topics are enabled, this
causes g_logv() to expect expected messages to also contain entries with
the debug level 'message' or higher to be listed in the expected message
list. Since meta_topic() always logged using g_message(), enabling debug
topics caused any test that used g_test_expect_message() and had debug
logging somewhere along the code path to fail.

Fix this by changing the log level of meta_topic() to 'debug' if we're
in a test. This doesn't mean they won't be visible, they still will
since debug log entries are printed by default during testing.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2800>
2023-01-24 13:09:42 +00:00
..
backends cogl/frame: Keep track of target presentation time 2023-01-23 15:57:51 +01:00
compositor clutter: Pass 'ClutterFrame' in all stage update signals 2023-01-23 15:57:50 +01:00
core util: Make meta_topic() log using the debug level in tests 2023-01-24 13:09:42 +00:00
frames frames: Quit immediately on SIGTERM 2023-01-20 21:25:02 +00:00
meta util: Make meta_topic() log using the debug level in tests 2023-01-24 13:09:42 +00:00
tests clutter: Pass 'ClutterFrame' in all stage update signals 2023-01-23 15:57:50 +01:00
wayland clutter: Pass 'ClutterFrame' in all stage update signals 2023-01-23 15:57:50 +01:00
x11 x11: Account for variable being possibly NULL 2023-01-20 22:23:55 +00:00
libmutter.pc.in
meson.build build: Make GTK dependency specific to X11 2022-12-22 15:13:54 +01:00
meta-private-enum-types.c.in build: Add missing include 2022-08-10 20:28:40 +02:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00