mirror of
https://github.com/uutils/procps.git
synced 2026-06-10 16:14:00 -07:00
vmstat: add test for --timestamp
This commit is contained in:
@@ -69,3 +69,15 @@ fn test_active() {
|
||||
.unwrap()
|
||||
.contains("active"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(target_os = "linux")]
|
||||
fn test_timestamp() {
|
||||
let result = new_ucmd!().arg("-t").succeeds();
|
||||
assert!(result
|
||||
.stdout_str()
|
||||
.lines()
|
||||
.next()
|
||||
.unwrap()
|
||||
.contains("timestamp"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user