mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 11:50:29 +01:00
nmtst: improve nmtst_assert_connection_verifies_without_normalization()
If the assertion in verifies_without_normalization() fails due to @was_modified, the error message is not helpful. Assert first against the content of the connection. This prints most likely the settings that were actually modified. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
71c5e5dea1
commit
884040fa8f
1 changed files with 1 additions and 2 deletions
|
|
@ -871,9 +871,8 @@ nmtst_assert_connection_verifies_without_normalization (NMConnection *con)
|
|||
success = nm_connection_normalize (con, NULL, &was_modified, &error);
|
||||
g_assert_no_error (error);
|
||||
g_assert (success);
|
||||
g_assert (!was_modified);
|
||||
|
||||
nmtst_assert_connection_equals (con, FALSE, clone, FALSE);
|
||||
g_assert (!was_modified);
|
||||
}
|
||||
|
||||
inline static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue