Skip to content

Commit

Permalink
Fix wrong test cases for mount options
Browse files Browse the repository at this point in the history
Signed-off-by: Kotaro Inoue <k.musaino@gmail.com>
  • Loading branch information
musaprg committed Jan 2, 2025
1 parent 842952c commit f2af633
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/libcontainer/src/rootfs/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ mod tests {
)?;
assert_eq!(
MountOptionConfig {
flags: MsFlags::MS_NOSUID,
flags: MsFlags::MS_NOSUID | MsFlags::MS_STRICTATIME,
data: "mode=755,size=65536k".to_string(),
rec_attr: None,
},
Expand Down Expand Up @@ -366,7 +366,8 @@ mod tests {
flags: MsFlags::MS_NOSUID
| MsFlags::MS_NOEXEC
| MsFlags::MS_NODEV
| MsFlags::MS_RDONLY,
| MsFlags::MS_RDONLY
| MsFlags::MS_RELATIME,
data: "".to_string(),
rec_attr: None
},
Expand Down

0 comments on commit f2af633

Please sign in to comment.