static void test_network_get(Manager *manager, struct udev_device *loopback) { Network *network; /* let's assume that the test machine does not have a .network file that applies to the loopback device... */ assert_se(network_get(manager, loopback, &network) == -ENOENT); assert_se(!network); }
static void test_network_get(Manager *manager, sd_device *loopback) { Network *network; const struct ether_addr mac = {}; /* let's assume that the test machine does not have a .network file that applies to the loopback device... */ assert_se(network_get(manager, loopback, "lo", &mac, &network) == -ENOENT); assert_se(!network); }