]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-fs-util: don't validate mode of symlinks 12437/head
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Apr 2019 17:32:31 +0000 (19:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 May 2019 13:07:55 +0000 (15:07 +0200)
Some file systems refuse changing the mode, and the mode has zero effect
anyway, hence let's no test for this.

src/test/test-fs-util.c

index 0610416d3704e72f58848887ca8895b440f20c49..85d679826fc61f06eda1446706a9f63a610588a6 100644 (file)
@@ -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);
 }