static void test_load_config(Manager *manager) { /* TODO: should_reload, is false if the config dirs do not exist, so * so we can't do this test here, move it to a test for paths_check_timestamps * directly * * assert_se(network_should_reload(manager) == true); */ assert_se(manager_load_config(manager) >= 0); assert_se(manager_should_reload(manager) == false); }
static int test_load_config(Manager *manager) { int r; /* TODO: should_reload, is false if the config dirs do not exist, so * so we can't do this test here, move it to a test for paths_check_timestamps * directly * * assert_se(network_should_reload(manager) == true); */ r = manager_load_config(manager); if (r == -EPERM) return r; assert_se(r >= 0); assert_se(manager_should_reload(manager) == false); return 0; }