aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGary S. Robertson <gary.robertson@linaro.org>2016-03-31 08:08:11 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-04-21 18:54:41 +0300
commite8532f5de81bc573ed1cd13047fb19c29d465563 (patch)
tree86fca9950936a6d98c2bc3d54c2873ba7564bd2e /test
parente43e013fccee3b22a2809d611eb2294f469ce82d (diff)
test: allow more than one control cpu
A second issue was discovered in the validation test code after fixing bug 2027 and creating default cpumasks containing all installed CPUs. See Linaro BUG 2027 for details. https://bugs.linaro.org/show_bug.cgi?id=2027 The cpumask validation test expected exactly one control CPU and returned an error otherwise. This change considers one or more control CPUs to be correct. Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/validation/cpumask/cpumask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/validation/cpumask/cpumask.c b/test/validation/cpumask/cpumask.c
index 017332a58..24e67b018 100644
--- a/test/validation/cpumask/cpumask.c
+++ b/test/validation/cpumask/cpumask.c
@@ -67,7 +67,7 @@ void cpumask_test_odp_cpumask_def(void)
mask_count = odp_cpumask_count(&mask);
CU_ASSERT(mask_count == num_control);
- CU_ASSERT(num_control == 1);
+ CU_ASSERT(num_control >= 1);
CU_ASSERT(num_worker <= available_cpus);
CU_ASSERT(num_worker > 0);
}