summaryrefslogtreecommitdiffstats
path: root/src/test/test-tmpfile-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tmpfile-util: turn last parameter of link_tmpfile() into a proper flagsLennart Poettering2023-06-131-4/+4
| | | | | | | | This changes a boolean param into a proper bitflag field. Given this only defines a single flag for now this doesn't look like much of an improvement. But we'll add another flag shortly, where it starts to make more sense.
* tests: merge test-tmpfiles.c into test-tmpfile-util.cZbigniew Jędrzejewski-Szmek2023-03-091-0/+66
| | | | | | | The former was added in 65b3903ff576488eaabb51d3c4fbf9c73d867d7c, but the name is confusing: the test has nothing to do with systemd-tmpfiles. It had one function that mostly tested functions from tmpfile-util.c, so just move it into the latter.
* tree-wide: use STRERROR()Zbigniew Jędrzejewski-Szmek2022-10-111-3/+9
|
* tmpfile-util: truncate original filename if the result filename is too longYu Watanabe2022-09-031-0/+139
| | | | This also verify that the extra string does not contain '/'.
* test: Use TEST macroJan Janssen2021-11-251-14/+3
| | | | | | | | | This converts to TEST macro where it is trivial. Some additional notable changes: - simplify HAVE_LIBIDN #ifdef in test-dns-domain.c - use saved_argc/saved_argv in test-copy.c, test-path-util.c, test-tmpfiles.c and test-unit-file.c
* test: use assert_se() instead of assert()Yu Watanabe2021-10-121-4/+4
|
* tree-wide: always drop unnecessary dot in pathYu Watanabe2021-05-281-8/+8
|
* path-util: make path_extract_filename/directory() handle "." gracefullyYu Watanabe2021-05-281-2/+6
| | | | | | This makes the functions handle "xx/" and "xx/." as equivalent. Moreover, now path_extract_directory() returns normalized path, that is no redundant "/" or "/./" are contained.
* tmpfile: port tempfn_*() to path_extract_*()Lennart Poettering2021-03-021-0/+102