summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Šimerda <pavlix@pavlix.net>2017-12-29 03:31:51 +0100
committerThomas Haller <thaller@redhat.com>2017-12-30 12:02:31 +0100
commit4650a4e1a1ff7ee03e2fb0b3dc6f31b911c2583d (patch)
treef46f7c9634c609c7092124097f6ded5b6afbba17
parent24695a6d1c6a69f363be77654c934f4efd86a713 (diff)
downloadNetworkManager-4650a4e1a1ff7ee03e2fb0b3dc6f31b911c2583d.tar.gz
tests: fix warnings about unused functions
https://github.com/NetworkManager/NetworkManager/pull/48
-rw-r--r--libnm-core/tests/test-setting.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm-core/tests/test-setting.c b/libnm-core/tests/test-setting.c
index b935760f92..48c42120be 100644
--- a/libnm-core/tests/test-setting.c
+++ b/libnm-core/tests/test-setting.c
@@ -869,6 +869,7 @@ test_dcb_bandwidth_sums (void)
/*****************************************************************************/
+#if WITH_JSON_VALIDATION
static void
_test_team_config_sync (const char *team_config,
int notify_peer_count,
@@ -1246,6 +1247,7 @@ test_team_port_full_config (void)
"\"send_always\": true}]}",
10, 20, true, 30, 40, NULL);
}
+#endif
/*****************************************************************************/
@@ -1625,7 +1627,6 @@ main (int argc, char **argv)
g_test_add_func ("/libnm/settings/team-port/sync_from_config_lacp_prio", test_team_port_lacp_prio);
g_test_add_func ("/libnm/settings/team-port/sync_from_config_lacp_key", test_team_port_lacp_key);
g_test_add_func ("/libnm/settings/team-port/sycn_from_config_full", test_team_port_full_config);
-
#endif
return g_test_run ();