Fixup is_niceness_adjustment_valid unit test for non-linux case (#32363)

The test needs to be aware of is_niceness_adjustment_valid from super
scope; however, the use directive in test module only runs on Linux
systems.
This commit is contained in:
steviez 2023-07-05 14:27:03 -04:00 committed by GitHub
parent f1f0f451b7
commit c2e45773af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ mod tests {
#[test]
fn test_is_niceness_adjustment_valid() {
use super::is_niceness_adjustment_valid;
assert_eq!(is_niceness_adjustment_valid("0"), Ok(()));
assert!(is_niceness_adjustment_valid("128").is_err());
assert!(is_niceness_adjustment_valid("-129").is_err());