shared/specifier: clarify and add test for missing data
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Mar 2022 10:38:46 +0000 (11:38 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:56 +0000 (16:17 +0200)
commit7962116fc8a2572c5c89904ac50fe99c8101f28f
tree494c4eafadea42753910fc753ba363398049a6c6
parent3a84a3c9dfde5182398a6d0863a2b2fe90a936b1
shared/specifier: clarify and add test for missing data

In systemd.unit we document that unset fields resolve to "". But we didn't
directly test this, so let's do that. Also, we return -ENOENT if the file
is missing, which we didn't document or test.
src/shared/specifier.c
src/test/test-specifier.c