static void test_is_static (void) { g_assert (!is_static_ip4 ("eth1")); g_assert (is_static_ip4 ("eth0")); g_assert (!is_static_ip6 ("eth0")); }
static void test_is_static () { ASSERT (is_static_ip4 ("eth1") == FALSE, "is static", "a dhcp interface is recognized as static"); ASSERT (is_static_ip4 ("eth0") == TRUE, "is static", "a static interface is recognized as dhcp"); ASSERT (!is_static_ip6 ("eth0") == TRUE, "is static", "a static interface is recognized as dhcp"); }