diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-12 08:31:08 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-12 08:31:08 +0200 |
commit | 1b2ac6b3116877068570f1d8da5e0a83a0acf7ad (patch) | |
tree | 97802293606c1a1c40b2e0017317cf2dca6bd768 /src/test/test-unit-name.c | |
parent | d18dff430bf60291a41b2c7dbe0ae5a5c4edf36c (diff) |
test: extend unit-name test a bit
Diffstat (limited to 'src/test/test-unit-name.c')
-rw-r--r-- | src/test/test-unit-name.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c index cf434558c3..50187e1129 100644 --- a/src/test/test-unit-name.c +++ b/src/test/test-unit-name.c @@ -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); |