From 6603e7ffde2b6a90206ea2e321cdff33d5b1c680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Fri, 12 Dec 2014 14:42:27 +0100 Subject: 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). ... --- libnm-glib/tests/test-nm-client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libnm-glib') 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; } -- cgit v1.2.1