summaryrefslogtreecommitdiff
path: root/libnm-glib
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2014-12-12 14:42:27 +0100
committerJiří Klimeš <jklimes@redhat.com>2014-12-15 14:11:03 +0100
commit6603e7ffde2b6a90206ea2e321cdff33d5b1c680 (patch)
tree2998c89adbdfc4badd0cd1d56aebd73fa0d25f3f /libnm-glib
parentafb0e2c53c4c17dfdb89d63b39db5101cc864704 (diff)
downloadNetworkManager-6603e7ffde2b6a90206ea2e321cdff33d5b1c680.tar.gz
tests: mute coverity for CHECKED_RETURN (CWE-252) in tests
Error: CHECKED_RETURN (CWE-252): [#def12] NetworkManager-0.9.11.0/libnm-core/tests/test-general.c:348: check_return: Calling "nm_setting_verify" without checking return value (as is done elsewhere 37 out of 45 times). ...
Diffstat (limited to 'libnm-glib')
-rw-r--r--libnm-glib/tests/test-nm-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnm-glib/tests/test-nm-client.c b/libnm-glib/tests/test-nm-client.c
index 989c097667..af3722eba4 100644
--- a/libnm-glib/tests/test-nm-client.c
+++ b/libnm-glib/tests/test-nm-client.c
@@ -48,6 +48,7 @@ test_client_new (void)
NMClient *client;
DBusGConnection *bus;
GError *error = NULL;
+ gboolean success;
bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
g_assert_no_error (error);
@@ -60,8 +61,9 @@ test_client_new (void)
dbus_g_connection_unref (bus);
- g_initable_init (G_INITABLE (client), NULL, &error);
+ success = g_initable_init (G_INITABLE (client), NULL, &error);
g_assert_no_error (error);
+ g_assert (success == TRUE);
return client;
}