summaryrefslogtreecommitdiff
path: root/src/test/test-hostname-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-hostname-util.c')
-rw-r--r--src/test/test-hostname-util.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/test/test-hostname-util.c b/src/test/test-hostname-util.c
index 2357ab5758..08be3f7bf2 100644
--- a/src/test/test-hostname-util.c
+++ b/src/test/test-hostname-util.c
@@ -65,37 +65,37 @@ static void test_hostname_cleanup(void) {
char *s;
s = strdupa("foobar");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa("foobar.com");
- assert_se(streq(hostname_cleanup(s, false), "foobar.com"));
+ assert_se(streq(hostname_cleanup(s), "foobar.com"));
s = strdupa("foobar.com.");
- assert_se(streq(hostname_cleanup(s, false), "foobar.com"));
+ assert_se(streq(hostname_cleanup(s), "foobar.com"));
s = strdupa("fooBAR");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR"));
s = strdupa("fooBAR.com");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR.com"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR.com"));
s = strdupa("fooBAR.");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR"));
s = strdupa("fooBAR.com.");
- assert_se(streq(hostname_cleanup(s, false), "fooBAR.com"));
+ assert_se(streq(hostname_cleanup(s), "fooBAR.com"));
s = strdupa("fööbar");
- assert_se(streq(hostname_cleanup(s, false), "fbar"));
+ assert_se(streq(hostname_cleanup(s), "fbar"));
s = strdupa("");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa(".");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa("..");
- assert_se(isempty(hostname_cleanup(s, false)));
+ assert_se(isempty(hostname_cleanup(s)));
s = strdupa("foobar.");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa(".foobar");
- assert_se(streq(hostname_cleanup(s, false), "foobar"));
+ assert_se(streq(hostname_cleanup(s), "foobar"));
s = strdupa("foo..bar");
- assert_se(streq(hostname_cleanup(s, false), "foo.bar"));
+ assert_se(streq(hostname_cleanup(s), "foo.bar"));
s = strdupa("foo.bar..");
- assert_se(streq(hostname_cleanup(s, false), "foo.bar"));
+ assert_se(streq(hostname_cleanup(s), "foo.bar"));
s = strdupa("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
- assert_se(streq(hostname_cleanup(s, false), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
+ assert_se(streq(hostname_cleanup(s), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
}
static void test_read_hostname_config(void) {