tests: add some tests for unit_name_is_valid() and related functions

I was surprised to see that foo@bar@bar.service is a valid unit
name. Apparently it is according to current code and docs.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-04-24 09:59:03 +02:00
parent 4f4ef6a099
commit 0682ed5cf4
3 changed files with 60 additions and 15 deletions
+1 -1
View File
@@ -710,7 +710,7 @@ int slice_build_parent_slice(const char *slice, char **ret) {
return 1;
}
int slice_build_subslice(const char *slice, const char*name, char **ret) {
int slice_build_subslice(const char *slice, const char *name, char **ret) {
char *subslice;
assert(slice);