Debian Codegraph @

debian/patches/tolerate-no-root-mount.diff

raw symbols SCIP
1 Description: tolerate lack of / mount.
2 Some chroot environments may not have an accessible root mount,
3 tolerate this case in the testsuite.
4 Author: Peter Michael Green <[email protected]>
5
6 --- rust-libmount-0.1.15.orig/src/remount.rs
7 +++ rust-libmount-0.1.15/src/remount.rs
8 @@ -375,7 +375,12 @@ mod test {
9
10 #[test]
11 fn test_get_mountpoint_flags() {
12 - assert!(get_mountpoint_flags(Path::new("/")).is_ok());
13 + let res = get_mountpoint_flags(Path::new("/"));
14 + match res {
15 + Ok(v) => {},
16 + Err(RemountError::UnknownMountPoint(p)) => assert_eq!(p, Path::new("/")), // in some chroot environments mount point information on the / mountpoint may be unavailable.
17 + Err(e) => panic!("{}",e)
18 + }
19 }
20
21 #[test]