[mutter/gnome-3-38] tests/monitor-config: Improve debugging output
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-38] tests/monitor-config: Improve debugging output
- Date: Fri, 29 Jan 2021 17:51:04 +0000 (UTC)
commit 015acbbc30b7d00e5c36a1d21ea9dc40c1e47e0a
Author: Thomas Mühlbacher <tmuehlbacher posteo net>
Date: Thu Jan 28 16:03:10 2021 +0100
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>
(cherry picked from commit 180e62519b4697ef263a28aa6a3db746627c0a4d)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1694>
src/tests/monitor-config-migration-unit-tests.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tests/monitor-config-migration-unit-tests.c b/src/tests/monitor-config-migration-unit-tests.c
index 461035d630..bb2ac62ccd 100644
--- a/src/tests/monitor-config-migration-unit-tests.c
+++ b/src/tests/monitor-config-migration-unit-tests.c
@@ -75,7 +75,7 @@ test_migration (const char *old_config,
g_assert_nonnull (expected_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);
if (!g_file_delete (migrated_file, NULL, &error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]