From: Lennart Poettering Date: Tue, 30 Apr 2019 17:32:31 +0000 (+0200) Subject: test-fs-util: don't validate mode of symlinks X-Git-Tag: v243-rc1~360^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12437%2Fhead;p=thirdparty%2Fsystemd.git test-fs-util: don't validate mode of symlinks Some file systems refuse changing the mode, and the mode has zero effect anyway, hence let's no test for this. --- diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 0610416d370..85d679826fc 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -636,7 +636,6 @@ static void test_touch_file(void) { assert_se(st.st_uid == test_uid); assert_se(st.st_gid == test_gid); assert_se(S_ISLNK(st.st_mode)); - assert_se((st.st_mode & 0777) == 0640); assert_se(timespec_load(&st.st_mtim) == test_mtime); }