mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
dns-domain: add test case from #34399
This commit is contained in:
parent
1e1661c5d2
commit
3f49d58920
@ -375,6 +375,9 @@ static void test_dns_name_is_valid_one(const char *s, int ret, int ret_ldh) {
|
||||
}
|
||||
|
||||
TEST(dns_name_is_valid) {
|
||||
test_dns_name_is_valid_one("[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[._qotd._tcp.local", 1, 0);
|
||||
test_dns_name_is_valid_one("[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]._qotd._tcp.local", 0, 0);
|
||||
|
||||
test_dns_name_is_valid_one("foo", 1, 1);
|
||||
test_dns_name_is_valid_one("foo.", 1, 1);
|
||||
test_dns_name_is_valid_one("foo..", 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user