[NetworkManager-openvpn] import-export: fix coding style of compress test
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-openvpn] import-export: fix coding style of compress test
- Date: Mon, 30 Mar 2020 07:53:40 +0000 (UTC)
commit 5b038a581f8c4d529d25be6c0af55e115d2536d2
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Mon Mar 30 08:57:50 2020 +0200
import-export: fix coding style of compress test
https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/merge_requests/21
properties/tests/test-import-export.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/properties/tests/test-import-export.c b/properties/tests/test-import-export.c
index 52944e0..ed63529 100644
--- a/properties/tests/test-import-export.c
+++ b/properties/tests/test-import-export.c
@@ -986,21 +986,15 @@ static void
test_compress_import (void)
{
_CREATE_PLUGIN (plugin);
- NMConnection *connection;
+ gs_unref_object NMConnection *connection = NULL;
NMSettingVpn *s_vpn;
connection = get_basic_connection (plugin, SRCDIR, "compress.ovpn");
- g_assert (connection);
- /* VPN setting */
s_vpn = nm_connection_get_setting_vpn (connection);
- g_assert (s_vpn);
- /* Data items */
_check_item (s_vpn, NM_OPENVPN_KEY_COMP_LZO, "adaptive");
_check_item (s_vpn, NM_OPENVPN_KEY_COMPRESS, "lzo");
-
- g_object_unref (connection);
}
/*****************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]