1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

test-unit-name: add tests for %f

This commit is contained in:
Ronny Chevalier 2014-12-11 17:58:40 +01:00
parent d31f486b83
commit 14b0295f91

View 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");