Skip to content

Commit e1db6a8

Browse files
Harshit933sylvestre
authored andcommitted
Add tests for findmnt
1 parent 84b0fca commit e1db6a8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/by-util/test_findmnt.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use crate::common::util::TestScenario;
2+
3+
#[test]
4+
fn test_findmnt() {
5+
new_ucmd!().succeeds().stdout_contains("/proc");
6+
}

tests/tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ mod test_dmesg;
4040
#[cfg(feature = "fsfreeze")]
4141
#[path = "by-util/test_fsfreeze.rs"]
4242
mod test_fsfreeze;
43+
44+
#[cfg(feature = "findmnt")]
45+
#[path = "by-util/test_findmnt.rs"]
46+
mod test_findmnt;

0 commit comments

Comments
 (0)