1 /* SPDX-License-Identifier: LGPL-2.1+ */
8 static void test_path_is_os_tree(void) {
9 assert_se(path_is_os_tree("/") > 0);
10 assert_se(path_is_os_tree("/etc") == 0);
11 assert_se(path_is_os_tree("/idontexist") == -ENOENT);
14 int main(int argc, char *argv[]) {
15 log_set_max_level(LOG_DEBUG);
16 log_parse_environment();
19 test_path_is_os_tree();