diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-26 16:32:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-24 17:01:57 +0200 |
commit | d58ad743f98b3a88de961462fb7adedbf30f727d (patch) | |
tree | 0978f88d2e97ef6aacd032b0c6540c70906f5207 /src/test/test-stat-util.c | |
parent | 080dfda85a9fc4bd471bc056a570d9eab411efa2 (diff) | |
download | systemd-d58ad743f98b3a88de961462fb7adedbf30f727d.tar.gz |
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.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/test-stat-util.c b/src/test/test-stat-util.c index 6c9c132612..1697b2d777 100644 --- a/src/test/test-stat-util.c +++ b/src/test/test-stat-util.c @@ -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(); |