summaryrefslogtreecommitdiff
path: root/src/test/test-stat-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-03-26 16:32:40 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit2cefb09ff69c3595e98c55f0da1bd137c612276c (patch)
tree413850b2eb4d2cd031c2d31ef66b657baf5d66d4 /src/test/test-stat-util.c
parent1049fbda947f856942a693f011fe013a2ee798f0 (diff)
os-util: add helpers for finding /etc/os-release
Place this new helpers in a new source file os-util.[ch], and move the existing and related call path_is_os_tree() to it as well.
Diffstat (limited to 'src/test/test-stat-util.c')
-rw-r--r--src/test/test-stat-util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/test-stat-util.c b/src/test/test-stat-util.c
index 3d8d911ac..52142a53f 100644
--- a/src/test/test-stat-util.c
+++ b/src/test/test-stat-util.c
@@ -53,12 +53,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) {
@@ -84,7 +78,6 @@ int main(int argc, char *argv[]) {
test_files_same();
#if 0 /// UNNEEDED by elogind
test_is_symlink();
- test_path_is_os_tree();
test_path_is_fs_type();
test_path_is_temporary_fs();
#endif // 0