Skip to content

Commit d011cef

Browse files
committed
Add tests for findmnt
1 parent 7479731 commit d011cef

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/by-util/test_findmnt.rs

+6
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

+4
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)