Lines Matching refs:domains
18 _cleanup_strv_free_ char **domains = NULL; in TEST() local
24 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
26 assert_se(streq(domains[0], "FOO.BAR")); in TEST()
27 assert_se(streq(domains[1], "ABCD.EFG")); in TEST()
32 _cleanup_strv_free_ char **domains = NULL; in TEST() local
37 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
39 assert_se(streq(domains[0], "FOO")); in TEST()
40 assert_se(streq(domains[1], "FOO")); in TEST()
45 _cleanup_strv_free_ char **domains = NULL; in TEST() local
51 r = dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains); in TEST()
53 assert_se(streq(domains[0], "FOO.BAR")); in TEST()
54 assert_se(streq(domains[1], "ABC.BAR")); in TEST()
60 _cleanup_strv_free_ char **domains = NULL; in TEST() local
63 assert_se(dhcp_lease_parse_search_domains(NULL, 0, &domains) == -ENODATA); in TEST()
64 assert_se(dhcp_lease_parse_search_domains(optionbuf, 0, &domains) == -ENODATA); in TEST()
68 _cleanup_strv_free_ char **domains = NULL; in TEST() local
73 … assert_se(dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf), &domains) == -EBADMSG); in TEST()
77 _cleanup_strv_free_ char **domains = NULL; in TEST() local
83 …assert_se(dhcp_lease_parse_search_domains(optionbuf, sizeof(optionbuf) - 5, &domains) == -EBADMSG); in TEST()