diff mbox

[API-NEXT,PATCHv7,2/5] test: allow more than one control cpu

Message ID 1459429694-6832-3-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer March 31, 2016, 1:08 p.m. UTC
From: "Gary S. Robertson" <gary.robertson@linaro.org>

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>
---
 test/validation/cpumask/cpumask.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/cpumask/cpumask.c b/test/validation/cpumask/cpumask.c
index 017332a..24e67b0 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);
 }