From patchwork Thu Mar 31 13:08:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 64778 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp148003lbc; Thu, 31 Mar 2016 06:09:02 -0700 (PDT) X-Received: by 10.55.214.211 with SMTP id p80mr15963559qkl.84.1459429742693; Thu, 31 Mar 2016 06:09:02 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p40si7698264qge.42.2016.03.31.06.09.02; Thu, 31 Mar 2016 06:09:02 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4D7DA619CD; Thu, 31 Mar 2016 13:09:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DD3E661A04; Thu, 31 Mar 2016 13:08:23 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 76A7D619DA; Thu, 31 Mar 2016 13:08:20 +0000 (UTC) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by lists.linaro.org (Postfix) with ESMTPS id 3B2BF619C9 for ; Thu, 31 Mar 2016 13:08:19 +0000 (UTC) Received: by mail-ob0-f169.google.com with SMTP id x3so97512433obt.0 for ; Thu, 31 Mar 2016 06:08:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8hN8pXgz5kaorWl8ZxyzNuDWCOm8CjajnTstlnkNyjc=; b=aatJxmbmqhfwo7so0h2YgQmGI3wPEhHv5trS9D9RWLzE/yFGJ9V8xz4k0LAk0M2izk krrxFP0V2sj7//qXadneEXMVC7Z20srVvfs99z8pXWLhaD5BOMn9hSW+IxmJ+Wm2udV1 uS34uHbk5lV3qN26zn/OyhsfXTRrEyup8LuPY2E4YRCgXW3V0NZDm/LQh+lbWdQR3HBq DWr+rUQOW5KHYMbvQrtW3KetgPuOugga0n6m3HkxicaG18wJ/o5cotMQ6cW2rZSFUxAS UNcZw5vwv74MrV1oQQJz/0h6FtM6rHDGAnmbD5hRtqkxNVh3LHiLpmr9S8wJ9uUOK5nT fZBg== X-Gm-Message-State: AD7BkJJIeWecmev020e2y8w0uETO1zD4PVHeP/5raBDtoNe8iSfUI28LorR1R0p6nasALQs7QNY= X-Received: by 10.60.142.67 with SMTP id ru3mr8061646oeb.37.1459429698830; Thu, 31 Mar 2016 06:08:18 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id yn3sm2668627obc.27.2016.03.31.06.08.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Mar 2016 06:08:18 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 31 Mar 2016 08:08:11 -0500 Message-Id: <1459429694-6832-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459429694-6832-1-git-send-email-bill.fischofer@linaro.org> References: <1459429694-6832-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv7 2/5] test: allow more than one control cpu X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: "Gary S. Robertson" 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 Signed-off-by: Bill Fischofer --- test/validation/cpumask/cpumask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }