diff options
| author | Thomas Haller <thaller@redhat.com> | 2017-04-13 22:34:32 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2017-04-15 00:37:22 +0200 |
| commit | be19ec073988eda0ecdc221a329b476480737f16 (patch) | |
| tree | 732ad9d1953ab96b3a32593fcfa4e36bc1fab181 /src/tests | |
| parent | 674b224bc17f1e70366d57bf6ab49ae33c1e4a5a (diff) | |
| download | NetworkManager-be19ec073988eda0ecdc221a329b476480737f16.tar.gz | |
core: ignore host part when comparing routes for route-manager
(cherry picked from commit b78562570ac49ddd31e20336206399613d5604ef)
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/test-route-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-route-manager.c b/src/tests/test-route-manager.c index ba7834e9ea..d534075753 100644 --- a/src/tests/test-route-manager.c +++ b/src/tests/test-route-manager.c @@ -806,7 +806,7 @@ _assert_route_check (const NMPlatformVTableRoute *vtable, gboolean has, const NM c.r6 = route->r6; c.rx.rt_source = nmp_utils_ip_config_source_round_trip_rtprot (c.rx.rt_source); } - if (!r || vtable->route_cmp (r, &c) != 0) { + if (!r || vtable->route_cmp (r, &c, TRUE) != 0) { g_error ("Invalid route. Expect %s, has %s", vtable->route_to_string (&c, NULL, 0), vtable->route_to_string (r, buf, sizeof (buf))); |
