Skip to content

Commit 5ca17df

Browse files
committed
pidof: rename test & remove target_os cfg
1 parent 05fcfdc commit 5ca17df

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/by-util/test_pidof.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
use crate::common::util::TestScenario;
77

8+
#[test]
9+
fn test_no_args() {
10+
new_ucmd!().fails().code_is(1).no_output();
11+
}
12+
813
#[test]
914
fn test_invalid_arg() {
1015
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
@@ -23,12 +28,6 @@ fn test_find_kthreadd() {
2328
new_ucmd!().arg("kthreadd").succeeds();
2429
}
2530

26-
#[test]
27-
#[cfg(target_os = "linux")]
28-
fn test_no_program() {
29-
new_ucmd!().fails().code_is(1).no_output();
30-
}
31-
3231
#[test]
3332
#[cfg(target_os = "linux")]
3433
fn test_no_pid_found() {

0 commit comments

Comments
 (0)