diff options
author | Thomas Haller <thaller@redhat.com> | 2015-03-26 18:05:42 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-04-08 14:39:16 +0200 |
commit | 57453189e05067be831d61805fbd45c7565b0085 (patch) | |
tree | bd03013db746f0ae9f8d85ea51608dd39bcba43e /src/platform/tests | |
parent | ba8ce3bbe511a3df2b2b3c66eeb13429896c59b6 (diff) | |
download | NetworkManager-57453189e05067be831d61805fbd45c7565b0085.tar.gz |
test: add option in nmtst_platform_ip4_routes_equal() to ignore ordering
Same for nmtst_platform_ip6_routes_equal().
It's useful to check for equal routes ignoring the ordering.
Diffstat (limited to 'src/platform/tests')
-rw-r--r-- | src/platform/tests/test-route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c index a2d35749e7..af50db6754 100644 --- a/src/platform/tests/test-route.c +++ b/src/platform/tests/test-route.c @@ -197,7 +197,7 @@ test_ip4_route (void) rts[2].mss = mss; g_assert_cmpint (routes->len, ==, 3); g_assert (!memcmp (routes->data, rts, sizeof (rts))); - nmtst_platform_ip4_routes_equal ((NMPlatformIP4Route *) routes->data, rts, routes->len); + nmtst_platform_ip4_routes_equal ((NMPlatformIP4Route *) routes->data, rts, routes->len, TRUE); g_array_unref (routes); /* Remove route */ @@ -293,7 +293,7 @@ test_ip6_route (void) rts[2].mss = mss; g_assert_cmpint (routes->len, ==, 3); g_assert (!memcmp (routes->data, rts, sizeof (rts))); - nmtst_platform_ip6_routes_equal ((NMPlatformIP6Route *) routes->data, rts, routes->len); + nmtst_platform_ip6_routes_equal ((NMPlatformIP6Route *) routes->data, rts, routes->len, TRUE); g_array_unref (routes); /* Remove route */ |