mutter/src/meta
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
..
barrier.h barrier: Make type derivable again 2022-09-15 12:27:52 +00:00
boxes.h boxes: Add rectangle init macro 2022-01-25 15:47:03 +00:00
common.h core: Add a in-tree copy of GtkBorder 2022-12-22 15:13:54 +01:00
compositor-mutter.h Deprecate meta_get_feedback_group_for_display() 2022-12-17 15:13:48 +01:00
compositor.h compositor: Don't make internal API public 2022-12-17 15:13:48 +01:00
display.h barriers: Make barriers fully part of the backend 2022-07-26 20:27:24 +00:00
group.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
keybindings.h core: Replace MetaVirtualModifier 2022-12-22 15:13:54 +01:00
main.h main: Add meta-context to the header 2022-08-10 10:47:51 +00:00
meson.build ui: Excise old frames UI 2022-12-01 20:10:53 +00:00
meta-backend.h Remove meta_get_backend() 2022-12-17 15:13:48 +01:00
meta-background-actor.h Include the pkgconfig-specified gdesktop-enums.h 2020-07-13 17:30:20 +08:00
meta-background-content.h background-content: Add support for rounded clipping when drawing 2021-02-18 20:26:42 +00:00
meta-background-group.h meta: Make MetaBackgroundGroup derivable 2019-06-24 13:49:31 +00:00
meta-background-image.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-background.h Include the pkgconfig-specified gdesktop-enums.h 2020-07-13 17:30:20 +08:00
meta-close-dialog.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-context.h meta: Move enum definitions to meta-enums.h 2022-12-17 22:49:44 +00:00
meta-cursor-tracker.h cursor-tracker: Add meta_cursor_tracker_get_scale () 2021-08-22 15:02:38 +00:00
meta-dnd.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-enum-types.c.in core: Drop "volatile" from static GTypes in manual registration 2021-03-22 10:47:51 +00:00
meta-enum-types.h.in enum-types: Use @basename@ in header comment 2019-06-12 18:01:36 +02:00
meta-enums.h meta: Move enum definitions to meta-enums.h 2022-12-17 22:49:44 +00:00
meta-idle-monitor.h idle-monitor: Use G_DECLARE_FINAL_TYPE() 2021-05-18 13:19:36 +00:00
meta-inhibit-shortcuts-dialog.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-later.h later: Remove old API 2022-12-17 15:13:48 +01:00
meta-launch-context.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-monitor-manager.h meta: Remove meta_monitor_manager_get() 2022-12-17 15:13:48 +01:00
meta-plugin.h compositor: Remove meta_plugin_begin/end_modal 2022-01-29 02:11:37 +01:00
meta-remote-access-controller.h remote-access-controller: Allow inhibiting remote access 2020-04-27 14:31:06 +00:00
meta-selection-source-memory.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection-source.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-settings.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-shadow-factory.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-shaped-texture.h shaped-texture: Make set_opaque_region() private 2020-06-29 12:57:55 +02:00
meta-sound-player.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-stage.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-startup-notification.h startup-notification: Fix some introspection annotations 2022-04-13 12:03:27 +02:00
meta-wayland-client.h wayland: Setup and use ownership chains 2022-12-17 15:13:48 +01:00
meta-window-actor.h window-actor: Add paint_to_content() function 2021-09-04 09:17:44 +00:00
meta-window-group.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-window-shape.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
meta-workspace-manager.h meta: Add missing display.h to meta-workspace-manager.h 2020-01-29 11:30:24 +01:00
meta-x11-display.h x11-display: Remove init GDK method from public APi 2022-12-17 13:52:50 +00:00
meta-x11-errors.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00
prefs.h core: Replace MetaVirtualModifier 2022-12-22 15:13:54 +01:00
types.h compositor: Enable introspection 2022-12-17 15:13:48 +01:00
util.h util: Make meta_topic() log using the debug level in tests 2023-01-24 13:09:42 +00:00
window.h window: Add has_attached_dialogs() function 2021-12-14 18:23:23 +01:00
workspace.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00