From 5ca17df66a88330dcc7ce5d4b1b48c501d019bc2 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 21 Mar 2025 10:58:07 +0100 Subject: [PATCH] pidof: rename test & remove target_os cfg --- tests/by-util/test_pidof.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/by-util/test_pidof.rs b/tests/by-util/test_pidof.rs index 00a07cf..2234fd5 100644 --- a/tests/by-util/test_pidof.rs +++ b/tests/by-util/test_pidof.rs @@ -5,6 +5,11 @@ use crate::common::util::TestScenario; +#[test] +fn test_no_args() { + new_ucmd!().fails().code_is(1).no_output(); +} + #[test] fn test_invalid_arg() { new_ucmd!().arg("--definitely-invalid").fails().code_is(1); @@ -23,12 +28,6 @@ fn test_find_kthreadd() { new_ucmd!().arg("kthreadd").succeeds(); } -#[test] -#[cfg(target_os = "linux")] -fn test_no_program() { - new_ucmd!().fails().code_is(1).no_output(); -} - #[test] #[cfg(target_os = "linux")] fn test_no_pid_found() {