Skip to content

Commit f3860a7

Browse files
committed
vmstat: add test for --timestamp
1 parent 25929ee commit f3860a7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/by-util/test_vmstat.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,15 @@ fn test_active() {
6969
.unwrap()
7070
.contains("active"));
7171
}
72+
73+
#[test]
74+
#[cfg(target_os = "linux")]
75+
fn test_timestamp() {
76+
let result = new_ucmd!().arg("-t").succeeds();
77+
assert!(result
78+
.stdout_str()
79+
.lines()
80+
.next()
81+
.unwrap()
82+
.contains("timestamp"));
83+
}

0 commit comments

Comments
 (0)