From ad8598e11687aa1cb5b3d1a9a8d805fc29c63e07 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Thu, 24 Jul 2025 15:48:37 +0800 Subject: [PATCH] vmstat: add test for `--stats` --- tests/by-util/test_vmstat.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/by-util/test_vmstat.rs b/tests/by-util/test_vmstat.rs index a37a790..b48c240 100644 --- a/tests/by-util/test_vmstat.rs +++ b/tests/by-util/test_vmstat.rs @@ -81,3 +81,9 @@ fn test_timestamp() { .unwrap() .contains("timestamp")); } + +#[test] +#[cfg(target_os = "linux")] +fn test_stats() { + new_ucmd!().arg("-s").succeeds(); +}