From patchwork Tue Jul 21 13:32:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 51317 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 52F8420323 for ; Tue, 21 Jul 2015 13:40:08 +0000 (UTC) Received: by lbcjf8 with SMTP id jf8sf47552890lbc.0 for ; Tue, 21 Jul 2015 06:40:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=qVfpNT2egZisthqo5vT4+ZpNuqYZWVatc9Mdk5Vy5gc=; b=OCalG/9vB4azrk7m82jRHvSHQD1DqWCbuJb9OfruwtFfI2aVQRNZxoymLfEUNYHrV1 L4zqFpGqOJpsVqHZj0BqMkXox0gApmoOTJFtsnYy6XS5kBu8RX05q5u/+1xscoJxb5LZ p4AJTUusku9Xq+7Zu8CKRBE4rR0l82SJdtkhuccHTK5HZj+6k9z4w+ciimDWlPT/TDbC ljfBJYtUFh4TjD8ICQOVDADYTlyozoRAsbshoFYQTMYDj8bfQl6SoEqfsqFtHNOUybjn QIGXFTf2kvH9xxCE7bHw064+NANLoG8qkPsNLD/BbUaCILgg6QIa/bhhQndnY+05JG1y AOMg== X-Gm-Message-State: ALoCoQmBEPqCKJHOBv8xXZg0uHxyaYXJSrKKGI+M9+BWZVrQVv4Hr/V1BysEGmTsmcWvfGMb+Bp0 X-Received: by 10.152.115.165 with SMTP id jp5mr6826510lab.10.1437486007331; Tue, 21 Jul 2015 06:40:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.201 with SMTP id t9ls851105laa.95.gmail; Tue, 21 Jul 2015 06:40:07 -0700 (PDT) X-Received: by 10.152.246.37 with SMTP id xt5mr32899214lac.83.1437486007136; Tue, 21 Jul 2015 06:40:07 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id e7si20815995lbc.62.2015.07.21.06.40.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 06:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbzr7 with SMTP id zr7so116130499lbb.1 for ; Tue, 21 Jul 2015 06:40:06 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr33724947lbb.56.1437486006846; Tue, 21 Jul 2015 06:40:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1457597lba; Tue, 21 Jul 2015 06:40:06 -0700 (PDT) X-Received: by 10.140.23.147 with SMTP id 19mr53981798qgp.84.1437486005559; Tue, 21 Jul 2015 06:40:05 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f129si28231231qhc.11.2015.07.21.06.40.04; Tue, 21 Jul 2015 06:40:05 -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; Received: by lists.linaro.org (Postfix, from userid 109) id BF2A961EC4; Tue, 21 Jul 2015 13:40:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal 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 ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id AC5AB61EF3; Tue, 21 Jul 2015 13:33:30 +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 9027D61E90; Tue, 21 Jul 2015 13:32:58 +0000 (UTC) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by lists.linaro.org (Postfix) with ESMTPS id A4B4861E72 for ; Tue, 21 Jul 2015 13:32:53 +0000 (UTC) Received: by wgav7 with SMTP id v7so91163279wga.2 for ; Tue, 21 Jul 2015 06:32:53 -0700 (PDT) X-Received: by 10.180.24.165 with SMTP id v5mr32019598wif.63.1437485572956; Tue, 21 Jul 2015 06:32:52 -0700 (PDT) Received: from e106441.cambridge.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id jy6sm37121913wjc.4.2015.07.21.06.32.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 06:32:52 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 21 Jul 2015 14:32:19 +0100 Message-Id: <1437485540-4862-9-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1437485540-4862-1-git-send-email-stuart.haslam@linaro.org> References: <1437485540-4862-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 8/9] validation: common: return number of threads created X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stuart.haslam@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 odph_linux_pthread_create() now returns the number of threads created, so modify odp_cunit_thread_create() to do the same. Signed-off-by: Stuart Haslam Reviewed-by: Christophe Milard --- test/validation/common/odp_cunit_common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c index 807325b..d995ad3 100644 --- a/test/validation/common/odp_cunit_common.c +++ b/test/validation/common/odp_cunit_common.c @@ -29,10 +29,9 @@ int odp_cunit_thread_create(void *func_ptr(void *), pthrd_arg *arg) /* Create and init additional threads */ odp_cpumask_def_worker(&cpumask, arg->numthrds); - odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr, - (void *)arg); - return 0; + return odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr, + (void *)arg); } /** exit from test thread */