diff options
author | Thomas Haller <thaller@redhat.com> | 2015-01-11 18:26:19 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-01-12 20:02:06 +0100 |
commit | a6cd0e7a29cb8847c5af2523c8dd48ce1c422cf6 (patch) | |
tree | 6c7a0af6c24f7e999d264ff0b7ac3826dd113cfe | |
parent | b421af3730cca4c0c5a3721a52cd2e4a1ebfc4b3 (diff) | |
download | NetworkManager-a6cd0e7a29cb8847c5af2523c8dd48ce1c422cf6.tar.gz |
platform/tests: use assert_ip4_route_exists() function
-rw-r--r-- | src/platform/tests/test-route.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c index 9ccca0a0f6..2b06c03993 100644 --- a/src/platform/tests/test-route.c +++ b/src/platform/tests/test-route.c @@ -75,11 +75,11 @@ test_ip4_route (void) accept_signal (route_added); /* Add route */ - g_assert (!nm_platform_ip4_route_exists (ifindex, network, plen, metric)); + assert_ip4_route_exists (FALSE, DEVICE_NAME, network, plen, metric); no_error (); g_assert (nm_platform_ip4_route_add (ifindex, NM_IP_CONFIG_SOURCE_USER, network, plen, gateway, 0, metric, mss)); no_error (); - g_assert (nm_platform_ip4_route_exists (ifindex, network, plen, metric)); + assert_ip4_route_exists (TRUE, DEVICE_NAME, network, plen, metric); no_error (); accept_signal (route_added); @@ -89,11 +89,11 @@ test_ip4_route (void) accept_signal (route_changed); /* Add default route */ - g_assert (!nm_platform_ip4_route_exists (ifindex, 0, 0, metric)); + assert_ip4_route_exists (FALSE, DEVICE_NAME, 0, 0, metric); no_error (); g_assert (nm_platform_ip4_route_add (ifindex, NM_IP_CONFIG_SOURCE_USER, 0, 0, gateway, 0, metric, mss)); no_error (); - g_assert (nm_platform_ip4_route_exists (ifindex, 0, 0, metric)); + assert_ip4_route_exists (TRUE, DEVICE_NAME, 0, 0, metric); no_error (); accept_signal (route_added); @@ -134,7 +134,7 @@ test_ip4_route (void) /* Remove route */ g_assert (nm_platform_ip4_route_delete (ifindex, network, plen, metric)); no_error (); - g_assert (!nm_platform_ip4_route_exists (ifindex, network, plen, metric)); + assert_ip4_route_exists (FALSE, DEVICE_NAME, network, plen, metric); accept_signal (route_removed); /* Remove route again */ |