From 884040fa8f7ef6c9f1f46ae0d96a751c4bc6f9ad Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 24 Sep 2014 10:17:50 +0200 Subject: [PATCH] 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 --- include/nm-test-utils.h | 3 +-- 1 file changed, 1 insertion(+), 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