From 14b0295f916a7ce5262b0b5b8a3418ce474b9c69 Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Thu, 11 Dec 2014 17:58:40 +0100 Subject: [PATCH] test-unit-name: add tests for %f --- src/test/test-unit-name.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c index ab6c488..65b6975 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"); -- 2.7.4