mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-15 05:27:40 -04:00
tests: Better failure output for test_dconf_paths
Output whether we get an unexpected failure or success, and the values we passed in, to make it easy to pinpoint the failing test.
This commit is contained in:
@@ -1152,7 +1152,12 @@ test_dconf_paths (void)
|
||||
gboolean result;
|
||||
|
||||
result = flatpak_dconf_path_is_similar (tests[i].path1, tests[i].path2);
|
||||
g_assert_cmpint (result, ==, tests[i].result);
|
||||
if (result != tests[i].result)
|
||||
g_error ("Unexpected %s: flatpak_dconf_path_is_similar (%s, %s) = %d",
|
||||
result ? "success" : "failure",
|
||||
tests[i].path1,
|
||||
tests[i].path2,
|
||||
result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user