summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2016-08-19 16:46:49 +0200
committerGitHub <noreply@github.com>2016-08-19 16:46:49 +0200
commit3f94fa378e41327297edd6192e536c62bed31012 (patch)
treea3acd730712cc02bb921fc7e12149e956cb8be53 /src/test
parenta6a8e60bd318c588f09aa89385f40ca926913574 (diff)
parent986cf85d9481866662ac8a3e1b11ff2b02e3b013 (diff)
Merge pull request #3992 from poettering/hostname-fix2
some hostname fixes, triggered by #3979
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-hostname-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-hostname-util.c b/src/test/test-hostname-util.c
index 17fde9f27e..1c3d13ed1d 100644
--- a/src/test/test-hostname-util.c
+++ b/src/test/test-hostname-util.c
@@ -42,6 +42,7 @@ static void test_hostname_is_valid(void) {
assert_se(!hostname_is_valid("foo..bar", false));
assert_se(!hostname_is_valid("foo.bar..", false));
assert_se(!hostname_is_valid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", false));
+ assert_se(!hostname_is_valid("au-xph5-rvgrdsb5hcxc-47et3a5vvkrc-server-wyoz4elpdpe3.openstack.local", false));
assert_se(hostname_is_valid("foobar", true));
assert_se(hostname_is_valid("foobar.com", true));