]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-stat-util.c
os-util: add helpers for finding /etc/os-release
[thirdparty/systemd.git] / src / test / test-stat-util.c
index 6c9c132612a64cf326f72081003324ecc2303763..1697b2d777f99e57c4e5469a8649a7166261db6d 100644 (file)
@@ -52,12 +52,6 @@ static void test_is_symlink(void) {
         unlink(name_link);
 }
 
-static void test_path_is_os_tree(void) {
-        assert_se(path_is_os_tree("/") > 0);
-        assert_se(path_is_os_tree("/etc") == 0);
-        assert_se(path_is_os_tree("/idontexist") == -ENOENT);
-}
-
 static void test_path_is_fs_type(void) {
         /* run might not be a mount point in build chroots */
         if (path_is_mount_point("/run", NULL, AT_SYMLINK_FOLLOW) > 0) {
@@ -81,7 +75,6 @@ static void test_path_is_temporary_fs(void) {
 int main(int argc, char *argv[]) {
         test_files_same();
         test_is_symlink();
-        test_path_is_os_tree();
         test_path_is_fs_type();
         test_path_is_temporary_fs();