]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/test/test-os-util.c
1 /* SPDX-License-Identifier: LGPL-2.1+ */
9 static void test_path_is_os_tree(void) {
10 assert_se(path_is_os_tree("/") > 0);
11 assert_se(path_is_os_tree("/etc") == 0);
12 assert_se(path_is_os_tree("/idontexist") == -ENOENT
);
15 int main(int argc
, char *argv
[]) {
16 test_setup_logging(LOG_DEBUG
);
18 test_path_is_os_tree();