diff options
author | Thomas Haller <thaller@redhat.com> | 2017-06-02 19:51:05 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-06-02 19:51:11 +0200 |
commit | 70879568704bd88438d34dd4f309ff6a641c56a3 (patch) | |
tree | e74a7c089eeba215091eed7d33fae92d3891ff5f | |
parent | f1eb1619f173a092c49dfcd1d53ec356827b6e0a (diff) | |
download | NetworkManager-70879568704bd88438d34dd4f309ff6a641c56a3.tar.gz |
supplicant/tests: work-around coverify false-positive in test
NetworkManager-1.8.0/src/supplicant/tests/test-supplicant-config.c:528: check_return: Calling "nm_setting_802_1x_set_ca_cert" without checking return value (as is done elsewhere 13 out of 16 times).
-rw-r--r-- | src/supplicant/tests/test-supplicant-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplicant/tests/test-supplicant-config.c b/src/supplicant/tests/test-supplicant-config.c index 47e22c4d50..2583e8f0c4 100644 --- a/src/supplicant/tests/test-supplicant-config.c +++ b/src/supplicant/tests/test-supplicant-config.c @@ -530,7 +530,7 @@ test_wifi_eap (void) nm_connection_add_setting (connection, NM_SETTING (s_8021x)); nm_setting_802_1x_add_eap_method (s_8021x, "tls"); nm_setting_802_1x_set_client_cert (s_8021x, TEST_CERT_DIR "/test-cert.p12", NM_SETTING_802_1X_CK_SCHEME_PATH, NULL, NULL); - nm_setting_802_1x_set_ca_cert (s_8021x, TEST_CERT_DIR "/test-ca-cert.pem", NM_SETTING_802_1X_CK_SCHEME_PATH, NULL, NULL); + g_assert (nm_setting_802_1x_set_ca_cert (s_8021x, TEST_CERT_DIR "/test-ca-cert.pem", NM_SETTING_802_1X_CK_SCHEME_PATH, NULL, NULL)); nm_setting_802_1x_set_private_key (s_8021x, TEST_CERT_DIR "/test-cert.p12", NULL, NM_SETTING_802_1X_CK_SCHEME_PATH, NULL, NULL); /* IP4 setting */ |