From patchwork Fri Dec 4 17:51:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57712 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp701043lbb; Fri, 4 Dec 2015 09:52:26 -0800 (PST) X-Received: by 10.140.44.9 with SMTP id f9mr19919811qga.69.1449251546393; Fri, 04 Dec 2015 09:52:26 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t64si15103706qht.71.2015.12.04.09.52.26; Fri, 04 Dec 2015 09:52:26 -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 E7DC462D75; Fri, 4 Dec 2015 17:52:25 +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 C6AAF62D6A; Fri, 4 Dec 2015 17:51:48 +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 4BA9662D65; Fri, 4 Dec 2015 17:51:47 +0000 (UTC) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by lists.linaro.org (Postfix) with ESMTPS id 2093962D61 for ; Fri, 4 Dec 2015 17:51:46 +0000 (UTC) Received: by lbbkw15 with SMTP id kw15so24903670lbb.0 for ; Fri, 04 Dec 2015 09:51:45 -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=hty5ueOAe60y4m6si/4gIKCO8C0dLsZuqrQmqRdcO9c=; b=sKFzTuEI/Z/gTwWmUVIICrZKUa3dlx112SZqFCWaPe/g5wmFgKbNsHYCyy6LJHVzs+ ZeOYAp57ZvYgwRkceD5bTKWVHAoqhurX9RM6l09tgBDM4u/Jy9VFrB5JalF3I1G6iR4T st1NV/YblILfyOq96vqXLuWRcHNjR8iXP3ey6HgeoaiYgB1E/trOXIaKEkQh2doX9TZE E6H27GzbHFOR5PuOghUdtNh1f6C2Kwgr7IM5nRmOgtldPHRrrY7Mg3Ft5BtRJi6RHRig iSCnRnsalVc49i4LxhJlKgH8qXKxS7JWyH9xZCX7hVPCFF5cQ7dAwKawPOzV6wqLvTdb A0OA== 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=hty5ueOAe60y4m6si/4gIKCO8C0dLsZuqrQmqRdcO9c=; b=bI4u7A7Xgy8TLGL0+FPIT1G8oIfktpW7U/xDhJcHzBiBjGP/zDKzNtnPeKr3PN/3EH wMB52JWOH4BNNushwGS/KHEa4ujO3jB6BTsYtAEypR5jR1QdTIJqgIQOnPzsZ9VyEaG7 dn+rwmpl+C4E9eJE03ntg1iJvXH2271fNx2T0ms2xJjrsLKqDZW8Ou49Mus6njc/PWkT V4W1zPwb1NS0cxeD0RyhvNk4emPNADvd/Zb6dzCujlQxQFP684OMtY+JtAGQQU7mxwSL w2JMoveOku2lWc3jFMsRBLf57y4TiJne/Q0glpVpvtUpTZIE59koAkCEvTLZA0HdaJ58 KSMQ== X-Gm-Message-State: ALoCoQmOnVWh8deFDQALxvxFkDpKzmqiu+aIEAucO9ul6bE/Ul+m0MxbI76lyE9m4DmxADtUejvP X-Received: by 10.112.157.133 with SMTP id wm5mr8277007lbb.65.1449251504912; Fri, 04 Dec 2015 09:51:44 -0800 (PST) Received: from localhost.localdomain ([212.90.60.8]) by smtp.gmail.com with ESMTPSA id rm5sm2483518lbb.20.2015.12.04.09.51.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 09:51:43 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Fri, 4 Dec 2015 19:51:26 +0200 Message-Id: <1449251494-23210-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449251494-23210-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1449251494-23210-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH v7 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. Reviewed-by: Petri Savolainen 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); }