mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
test: extend unit-name test a bit
This commit is contained in:
parent
d18dff430b
commit
1b2ac6b311
@ -53,6 +53,26 @@ int main(int argc, char* argv[]) {
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_replace_instance(".service", "waldo");
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_replace_instance("foo@bar", "waldo");
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_replace_instance("foo@", "waldo");
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_replace_instance("@", "waldo");
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_replace_instance("@bar", "waldo");
|
||||
puts(t);
|
||||
free(t);
|
||||
|
||||
t = unit_name_from_path("/waldo", ".mount");
|
||||
puts(t);
|
||||
k = unit_name_to_path(t);
|
||||
|
Loading…
Reference in New Issue
Block a user