From 4cc569f5f046edf635d99c9d31fc30554375759d Mon Sep 17 00:00:00 2001 From: GaryDev <112358055+garydev10@users.noreply.github.com> Date: Mon, 29 May 2023 13:34:19 +0800 Subject: [PATCH] whoami: add test to improve coverage * tests/whoami: add windows test for issue #4614 * tests/whoami issue #4614: add all platform test --- tests/by-util/test_whoami.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/by-util/test_whoami.rs b/tests/by-util/test_whoami.rs index cbcf86028..9e6c35be6 100644 --- a/tests/by-util/test_whoami.rs +++ b/tests/by-util/test_whoami.rs @@ -50,3 +50,8 @@ fn test_normal_compare_env() { println!("test skipped:"); } } + +#[test] +fn test_succeeds_on_all_platforms() { + new_ucmd!().succeeds().no_stderr(); +}