Skip to content

Commit 14867c6

Browse files
committed
df: add test
1 parent 2132d42 commit 14867c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/mntent.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,12 @@ mod tests {
145145
fn test_open_system() {
146146
let mtab = MountTable::open_system();
147147
assert!(mtab.is_ok());
148+
149+
let mut count = 0;
148150
for i in mtab.unwrap() {
149151
let _ = i.dir;
152+
count += 1;
150153
}
154+
assert!(count > 0);
151155
}
152156
}

0 commit comments

Comments
 (0)