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:
parent
f1f0f451b7
commit
c2e45773af
|
@ -125,6 +125,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_is_niceness_adjustment_valid() {
|
fn test_is_niceness_adjustment_valid() {
|
||||||
|
use super::is_niceness_adjustment_valid;
|
||||||
assert_eq!(is_niceness_adjustment_valid("0"), Ok(()));
|
assert_eq!(is_niceness_adjustment_valid("0"), Ok(()));
|
||||||
assert!(is_niceness_adjustment_valid("128").is_err());
|
assert!(is_niceness_adjustment_valid("128").is_err());
|
||||||
assert!(is_niceness_adjustment_valid("-129").is_err());
|
assert!(is_niceness_adjustment_valid("-129").is_err());
|
||||||
|
|
Loading…
Reference in New Issue