chiark / gitweb /
test-unit-name: add tests for %f
authorRonny Chevalier <chevalier.ronny@gmail.com>
Thu, 11 Dec 2014 16:58:40 +0000 (17:58 +0100)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Thu, 11 Dec 2014 17:32:57 +0000 (18:32 +0100)
src/test/test-unit-name.c

index ab6c488cffb7627901892435b92ea471470ddcf0..65b6975a69e0488cfeeb2adaa37252dc42d3a696 100644 (file)
@@ -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");