]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Add basic tests for path_split_prefix_filename()
authorPhilip Withnall <pwithnall@gnome.org>
Mon, 9 Feb 2026 12:13:51 +0000 (12:13 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 9 Feb 2026 15:26:40 +0000 (16:26 +0100)
commit779ed358f2e31d553f08dcb0ca351684d906251e
tree8a1f1e2bc7e815cc0a139567b2afb545de094d42
parente67b008fa35d92937b07c6b3903419cd42ef9103
test: Add basic tests for path_split_prefix_filename()

These aren’t anything comprehensive, but provide some basic assurances
that it’s working correctly. In particular, they test its behaviour when
*both* the prefix and filename components are requested.

Split out from the original version of this function which was part
of #40236.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
src/test/test-path-util.c