Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e93b1284 authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

Fixed fs_mgr#fs_mgr_read_fstab_file_proc_mounts test

It was failing with:
Expected equality of these values:
mnt_opts
Which is: { "data=ordered", "discard", "noatime", "nodev", "nosuid", "rw", "seclabel", "sync" }
fs_options
Which is: { "data=ordered", "discard", "noatime", "nodev", "nosuid", "rw", "seclabel" }

Test: atest fs_mgr_unit_test
Change-Id: I3bb084d62e81fda8948a100515bdaad62d18bb54
parent f71ca37d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@ TEST(fs_mgr, fs_mgr_read_fstab_file_proc_mounts) {
                {"nodiratime", MS_NODIRATIME},
                {"ro", MS_RDONLY},
                {"rw", 0},
                {"sync", MS_SYNCHRONOUS},
                {"remount", MS_REMOUNT},
                {"bind", MS_BIND},
                {"rec", MS_REC},
@@ -197,7 +198,7 @@ TEST(fs_mgr, fs_mgr_read_fstab_file_proc_mounts) {
        if (!(entry.flags & MS_RDONLY)) {
            fs_options.emplace("rw");
        }
        EXPECT_EQ(mnt_opts, fs_options);
        EXPECT_EQ(mnt_opts, fs_options) << "At line " << i;
        ++i;
    }
    EXPECT_EQ(i, fstab.size());