lib/test_cpumask: Add for_each_cpu_and(not) tests
authorValentin Schneider <vschneid@redhat.com>
Mon, 3 Oct 2022 15:34:19 +0000 (16:34 +0100)
committerYury Norov <yury.norov@gmail.com>
Thu, 6 Oct 2022 12:57:36 +0000 (05:57 -0700)
commit49937cd12331cc3966b3f8628253fe62fbbd35a1
tree9f483a601514c79056d7377ff690009267359791
parent5f75ff295c662c1c8fb9e1737e9dc3b9a1e7fb29
lib/test_cpumask: Add for_each_cpu_and(not) tests

Following the recent introduction of for_each_andnot(), add some tests to
ensure for_each_cpu_and(not) results in the same as iterating over the
result of cpumask_and(not)().

Suggested-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Valentin Schneider <vschneid@redhat.com>
lib/cpumask_kunit.c