From patchwork Thu Feb 4 07:49:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 61159 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp308673lbl; Wed, 3 Feb 2016 23:49:51 -0800 (PST) X-Received: by 10.140.22.74 with SMTP id 68mr7141913qgm.87.1454572191122; Wed, 03 Feb 2016 23:49:51 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z93si9432176qgd.106.2016.02.03.23.49.50; Wed, 03 Feb 2016 23:49:51 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4CB46618BF; Thu, 4 Feb 2016 07:49:50 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=H+Nty+JE; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 7895B617D0; Thu, 4 Feb 2016 07:49:46 +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 371F7617EC; Thu, 4 Feb 2016 07:49:44 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by lists.linaro.org (Postfix) with ESMTPS id 30C6A617CD for ; Thu, 4 Feb 2016 07:49:43 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id bc4so26187506lbc.2 for ; Wed, 03 Feb 2016 23:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=BQwC7DA/LSvaLfk9r0ZdVUt2b8TEqo+5rrnUOjbh69c=; b=H+Nty+JEIxbcRtw7u9lp+RxffwVQuN5RUe9Bp81JmL6QtKutPvvhlBsLi0Pvatd4TZ DcNfNF8Dal1DApVKph5xap+YWVzpOqnE2wVSsnlSbgoUIzZyfNG0y8/+pTnNug6HPZVM wmtIccctgnS6CNAGEGApMfsE83y2+Mgb2Zxvk= 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; bh=BQwC7DA/LSvaLfk9r0ZdVUt2b8TEqo+5rrnUOjbh69c=; b=YCcVjWfcnmlvgl7cPEcl2TnfwQ8a+Sd8DXbmoq/mbd2ZHoQH11ROmC/Ko0d1BO9Ytp 4//pjuj65YNC2/rsWOYXQ4xtKzAz3wfAG8q2ElU+TG/5LGf8xtqP+hHvB3/x/8sn3kID wRbKzqdWY8UNIZGChnJVpjopjxIuWe/rglyS62vlpfAvYgnsIffkk+v7I1Op1OU+teWz lWo6edxqqJYpmFS+ShkettD0I6EXuPtZu4UTjgk+bXMXaYKDp8z+w49KGbM1KC1P1Lba viVsgpTopWUgyVjTgLW10zgR39UYaOr3p9zwSyxP0TGMSouKxQLyIYzkMRt8jsbi9VgX uT+g== X-Gm-Message-State: AG10YOQf1l17ZUeW48D879oy41mj9kkiMl5a0zA+3VdJcIRHnOkhEIZ24ctE3oDfRB70AxNsQuE= X-Received: by 10.112.181.196 with SMTP id dy4mr2797749lbc.42.1454572181811; Wed, 03 Feb 2016 23:49:41 -0800 (PST) Received: from localhost.localdomain (ppp91-76-173-134.pppoe.mtu-net.ru. [91.76.173.134]) by smtp.gmail.com with ESMTPSA id h72sm1383041lfe.33.2016.02.03.23.49.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 23:49:41 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 4 Feb 2016 10:49:33 +0300 Message-Id: <1454572173-4209-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: system: fix return code for checks 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 doc: "A return value of 0 meansinactive, anything else is active.". Signed-off-by: Maxim Uvarov Reviewed-by: Hongbo Zhang --- test/validation/system/system.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/system/system.c b/test/validation/system/system.c index 5b5a3f0..5d87b8b 100644 --- a/test/validation/system/system.c +++ b/test/validation/system/system.c @@ -218,10 +218,10 @@ int system_check_odp_cpu_hz(void) { if (odp_cpu_hz() == 0) { fprintf(stderr, "odp_cpu_hz is not supported, skipping\n"); - return -1; + return 0; } - return 0; + return 1; } void system_test_odp_cpu_hz(void) @@ -250,12 +250,12 @@ int system_check_odp_cpu_hz_id(void) fprintf(stderr, "cpu %d does not support" " odp_cpu_hz_id()," "skip that test\n", cpu); - return -1; + return 0; } cpu = odp_cpumask_next(&mask, cpu); } - return 0; + return 1; } void system_test_odp_cpu_hz_id(void)