Systemd/test/TEST-22-TMPFILES
Franck Bui 4dc7bfdf4f tmpfiles: use fd_get_path() even less excessively
A follow-up for commit 9d874aec45.

This patch makes "path" parameter mandatory in fd_set_*() helpers removing the
need to use fd_get_path() when NULL was passed. The caller is supposed to pass
the fd anyway so assuming that it also knows the path should be safe.

Actually, the only case where this was useful (or used) was when we were
walking through directory trees (in item_do()). But even in those cases the
paths could be constructed trivially, which is still better than relying on
fd_get_path() (which is an ugly API).

A very succinct test case is also added for 'z/Z' operators so the code dealing
with recursive operators is tested minimally.
2018-08-21 19:48:08 +02:00
..
Makefile test: add tests for systemd-tmpfiles 2018-03-05 21:49:11 +01:00
run-tmpfiles-tests.sh test: add tests for systemd-tmpfiles 2018-03-05 21:49:11 +01:00
test-01.sh test: add tests for systemd-tmpfiles 2018-03-05 21:49:11 +01:00
test-02.sh tmpfiles: add more tests 2018-07-30 16:04:23 +02:00
test-03.sh test: don't use "nobody:nogroup" for tests 2018-08-08 11:59:39 +02:00
test-04.sh test: don't use "nobody:nogroup" for tests 2018-08-08 11:59:39 +02:00
test-05.sh tmpfiles: use fd_get_path() even less excessively 2018-08-21 19:48:08 +02:00
test.sh tmpfiles: add more tests 2018-07-30 16:04:23 +02:00
testsuite.service test: make TEST-22 easier to debug, by outputting to /dev/console 2018-08-08 11:59:39 +02:00