tests/monitor-config: Improve debugging output

Make it easier to find out what went wrong with `migrated_data` by
having it included in the debug logs.

Closes: <https://gitlab.gnome.org/GNOME/mutter/-/issues/1011>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1685>
This commit is contained in:
Thomas Mühlbacher 2021-01-28 16:03:10 +01:00 committed by Marge Bot
parent 88647ae23c
commit 180e62519b

View File

@ -75,7 +75,7 @@ test_migration (const char *old_config,
g_assert_nonnull (expected_data); g_assert_nonnull (expected_data);
g_assert_nonnull (migrated_data); g_assert_nonnull (migrated_data);
g_assert (strcmp (expected_data, migrated_data) == 0); g_assert_cmpstr (expected_data, ==, migrated_data);
migrated_file = g_file_new_for_path (migrated_path); migrated_file = g_file_new_for_path (migrated_path);
if (!g_file_delete (migrated_file, NULL, &error)) if (!g_file_delete (migrated_file, NULL, &error))