diff options
Diffstat (limited to 'test/test_sched.rs')
-rw-r--r-- | test/test_sched.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_sched.rs b/test/test_sched.rs index 922196a3..ebf346db 100644 --- a/test/test_sched.rs +++ b/test/test_sched.rs @@ -24,7 +24,10 @@ fn test_sched_affinity() { let updated_affinity = sched_getaffinity(Pid::from_raw(0)).unwrap(); for field in 0..CpuSet::count() { // Should be set only for the CPU we set previously - assert_eq!(updated_affinity.is_set(field).unwrap(), field==last_valid_cpu) + assert_eq!( + updated_affinity.is_set(field).unwrap(), + field == last_valid_cpu + ) } // Finally, reset the initial CPU set |