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
This commit is contained in:
parent
f71ca37df4
commit
e93b12847f
1 changed files with 2 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue