summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-12-11 17:58:40 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2014-12-11 18:32:57 +0100
commit14b0295f916a7ce5262b0b5b8a3418ce474b9c69 (patch)
tree895b6a76095163c1755715eee9a3b4bca2d84492 /src
parentd31f486b83484801b6a300a555a9b986a7a84e7b (diff)
test-unit-name: add tests for %f
Diffstat (limited to 'src')
-rw-r--r--src/test/test-unit-name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c
index ab6c488cff..65b6975a69 100644
--- a/src/test/test-unit-name.c
+++ b/src/test/test-unit-name.c
@@ -159,6 +159,7 @@ static int test_unit_printf(void) {
/* normal unit */
expect(u, "%n", "blah.service");
+ expect(u, "%f", "/blah");
expect(u, "%N", "blah");
expect(u, "%p", "blah");
expect(u, "%P", "blah");
@@ -178,6 +179,7 @@ static int test_unit_printf(void) {
expect(u2, "%n", "blah@foo-foo.service");
expect(u2, "%N", "blah@foo-foo");
+ expect(u2, "%f", "/foo/foo");
expect(u2, "%p", "blah");
expect(u2, "%P", "blah");
expect(u2, "%i", "foo-foo");