pidof: Add test file

This commit is contained in:
Krysztal Huang
2024-07-08 16:35:44 +08:00
parent b6012da1f1
commit 40199f249f
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// This file is part of the uutils procps package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario;
#[test]
fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
+4
View File
@@ -32,3 +32,7 @@ mod test_slabtop;
#[cfg(feature = "pgrep")]
#[path = "by-util/test_pgrep.rs"]
mod test_pgrep;
#[cfg(feature = "pidof")]
#[path = "by-util/test_pidof.rs"]
mod test_pidof;