Commit 1b2ac6b3 authored by Lennart Poettering's avatar Lennart Poettering

test: extend unit-name test a bit

parent d18dff43
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment