summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-04 08:58:25 +0100
committerThomas Haller <thaller@redhat.com>2016-03-04 08:58:25 +0100
commitf2165ab959dc2a66c6c9a820017ec482655a28f5 (patch)
treef381460e2b41b5c48dbecfb250b4d0a2b4b710ee
parente4af0f6767fccbbf822b5778ea216f579ec45572 (diff)
downloadNetworkManager-f2165ab959dc2a66c6c9a820017ec482655a28f5.tar.gz
route-manager/tests: add assertion for adding route
Not checking the return value is marked by coverity. Just workaround it.
-rw-r--r--src/tests/test-route-manager.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/tests/test-route-manager.c b/src/tests/test-route-manager.c
index 742f4ee5cd..5d60d08c73 100644
--- a/src/tests/test-route-manager.c
+++ b/src/tests/test-route-manager.c
@@ -421,14 +421,16 @@ setup_dev1_ip6 (int ifindex)
/* Add some route outside of route manager. The route manager
* should get rid of it upon sync. */
- nm_platform_ip6_route_add (NM_PLATFORM_GET,
- ifindex,
- NM_IP_CONFIG_SOURCE_USER,
- *nmtst_inet6_from_string ("2001:db8:8088::"),
- 48,
- in6addr_any,
- 10,
- 0);
+ if (!nm_platform_ip6_route_add (NM_PLATFORM_GET,
+ ifindex,
+ NM_IP_CONFIG_SOURCE_USER,
+ *nmtst_inet6_from_string ("2001:db8:8088::"),
+ 48,
+ in6addr_any,
+ 10,
+ 0)) {
+ g_assert_not_reached ();
+ }
route = nmtst_platform_ip6_route_full ("2001:db8:8086::",
48,