diff options
author | Thomas Haller <thaller@redhat.com> | 2014-09-24 10:17:50 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-12 20:11:31 +0200 |
commit | 884040fa8f7ef6c9f1f46ae0d96a751c4bc6f9ad (patch) | |
tree | 5b56e38c402c9ef11cbae1225ad95b32cfdb5175 /include | |
parent | 71c5e5dea1808d409a1e9153d6b4ebac3d59ffe3 (diff) | |
download | NetworkManager-884040fa8f7ef6c9f1f46ae0d96a751c4bc6f9ad.tar.gz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/nm-test-utils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h index e296df044b..12e84b3393 100644 --- a/include/nm-test-utils.h +++ b/include/nm-test-utils.h @@ -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 |