static void test_has_default_route (void) { g_assert (has_default_ip4_route ("eth0")); g_assert (has_default_ip6_route ("eth4")); g_assert (!has_default_ip4_route ("eth5") && !has_default_ip6_route ("eth5")); }
static void test_has_default_route () { ASSERT (has_default_ip4_route ("eth0"), "has default route", "eth0 should have a default ipv4 route"); ASSERT (has_default_ip6_route ("eth4"), "has default route", "eth4 should have a default ipv6 route"); ASSERT (!has_default_ip4_route ("eth5") && !has_default_ip6_route ("eth5"), "has default route", "eth5 shouldn't have a default route"); }