From patchwork Tue Dec 1 14:58:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57494 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2227992lbb; Tue, 1 Dec 2015 07:00:00 -0800 (PST) X-Received: by 10.140.242.141 with SMTP id n135mr86937928qhc.59.1448982000346; Tue, 01 Dec 2015 07:00:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 38si40223149qgi.84.2015.12.01.06.59.59; Tue, 01 Dec 2015 07:00:00 -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.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id DA23D61E67; Tue, 1 Dec 2015 14:59:59 +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.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 887B961E19; Tue, 1 Dec 2015 14:59:25 +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 20A8761D9D; Tue, 1 Dec 2015 14:59:20 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 2498261D9D for ; Tue, 1 Dec 2015 14:59:15 +0000 (UTC) Received: by lfs39 with SMTP id 39so10712460lfs.3 for ; Tue, 01 Dec 2015 06:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v+KkyoQZwQj4qx/2pj63+hZrB/Y4rIlw4QuVTP6bAmw=; b=XA3tR2a7EpFlTGWJWt0HkyiSJWeQmr8RxJU8fIoUHrd8L5VuDPB5vyGCn3EOItdDgu ir+u+9L03S+iTXndHT3toYrELmVRwtvl9TOcJIQsGPtq8oa6zeRca64ymHEx5fsZC29h UU+xC4JZuiJNPLvYrLhG8Uzn8clJ5bUufk8Cx6C97t1uiP+UO08WzRGtRDW5VC+lw7L1 sbWoD7VlAY4OFvOMN6A4Pf7PnBKZsWrtpPtxe02kIqPBg32v736vOFFiwwqMqwjhZM9l Qbv+++GPufM/1BbtmqL2xFN6Lxh0Wers99U0TRlWz+AyQ7I8hC9Z+4wYZrXJZGhKwcPD 6CRg== 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=v+KkyoQZwQj4qx/2pj63+hZrB/Y4rIlw4QuVTP6bAmw=; b=Gc2/M8Q4LTJ7s4giubP8/OMyrqlS1cgWGWPLL6uwUk2hPFvQaEgI/P5v+XEVJlwnG6 u8gwuzz+K7CL6RQ+45kIaALLBuqfq1dqHEtfSwK3vjs30UkAB4nrcQA1TOSWjTKvxtoQ kqQqXAWrTRE46vGdgZ6wZ48Qnl+kRcDCcAAeG6YLq202swefS2Fnm1qNz1lbn52Qy195 +3GXsc7IagSSw1zgOfiIz4bQB2twuwV62mJ+ZbHNvLmpt24znH605FwZemO75FddDwDp GxpeOExQ5uZywo3jWOlFB34i4WMuhGDZeLzUqBD96tt3aUeVSCVSPzI3e5saizEZ3iBX uK0A== X-Gm-Message-State: ALoCoQksTeACc3psFNKfzMERdOO9MHr9M8klWRs8OAHllR+C9ZSqUCgNwZA3uPhXjkUXNDWKz/x9 X-Received: by 10.25.29.205 with SMTP id d196mr24786735lfd.81.1448981953352; Tue, 01 Dec 2015 06:59:13 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id l128sm5251710lfd.10.2015.12.01.06.59.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 06:59:12 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Tue, 1 Dec 2015 16:58:57 +0200 Message-Id: <1448981945-8062-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448981945-8062-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1448981945-8062-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v4 1/9] validation: time: don't assign int directly to odp_time_t 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" Under opaque type can be structure that cannot be used with direct values, So, use conversion functions to get time_t to avoid build issues. Signed-off-by: Ivan Khoronzhuk --- test/validation/time/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/time/time.c b/test/validation/time/time.c index f70c776..3d05a6f 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -36,8 +36,8 @@ void time_test_odp_negative_diff(void) { odp_time_t diff, t1, t2; - t1 = 10; - t2 = 5; + t1 = odp_time_local_from_ns(10); + t2 = odp_time_local_from_ns(5); diff = odp_time_diff(t2, t1); CU_ASSERT(odp_time_cmp(diff, ODP_TIME_NULL) > 0); }